【发布时间】:2020-01-30 12:35:25
【问题描述】:
我正在尝试加载一些数组为空的 JOSN 文件。
{"house_account_payable":"0.00","house_account_receivable":"0.00","gift_sales_payable":"0.00","gift_sales_receivable":"0.00","store_credit_sales_payable":"0.00","percentage_row":null,"sales_per_period":[["02:00AM - 02:59AM",{"amount":0,"qty":0}],["03:00AM - 03:59AM",{"amount":0,"qty":0}]],"revenue_centers":[],"tax_breakdowns":[]}
这给出了错误:
rror while reading table: test2, error message: Failed to parse JSON: No object found when new array is started.; BeginArray returned false; Parser terminated before end of string
有人可以帮我解决这个问题吗?
【问题讨论】:
-
对象{.....}的开启和关闭应该在同一行。请参阅stackoverflow.com/a/54658959/132438 进行修复
-
@FelipeHoffa 我已经更新了完整的 JSON 文件,它实际上是嵌套的。
标签: arrays json google-bigquery