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轻松使用?