0
我有一個存儲在JSON中的項目列表。目前,BigQuery似乎不支持JSON數組。我有以下的JSON:BigQuery對導入的JSON數組的支持
[
{
"purchaseId": "f7c67e39-5382-4d08-a308-0e4657143c44",
"platform": "googleplay",
"createdAt": 1364226047214,
"type": "currency",
"purchaseDate": 1364225968000,
"updatedAt": 1364226052634
},
{
"purchaseId": "f7c67e39-5382-4d08-a308-0e4657143c44",
"platform": "googleplay",
"createdAt": 1364226047214,
"type": "currency",
"purchaseDate": 1364225968000,
"updatedAt": 1364226052634
},
{
"purchaseId": "f7c67e39-5382-4d08-a308-0e4657143c44",
"platform": "googleplay",
"createdAt": 1364226047214,
"type": "currency",
"purchaseDate": 1364225968000,
"updatedAt": 1364226052634
}
]
我收到以下錯誤:
Line:1/Column:1, Expected '{' found '['
像下面是無效的JSON:
{
"purchaseId": "f7c67e39-5382-4d08-a308-0e4657143c44",
"platform": "googleplay",
"createdAt": 1364226047214,
"type": "currency",
"purchaseDate": 1364225968000,
"updatedAt": 1364226052634
},
{
"purchaseId": "f7c67e39-5382-4d08-a308-0e4657143c44",
"platform": "googleplay",
"createdAt": 1364226047214,
"type": "currency",
"purchaseDate": 1364225968000,
"updatedAt": 1364226052634
}
那麼什麼是組項目的最好辦法在JSON中可以被BigQuery輕鬆使用?