小编Cha*_*mar的帖子

JSON格式错误

我在尝试将此JSON导入google bigquery表文件-000000时遇到此错误:JSON表遇到太多错误,放弃了.行数:1; 错误:1.(错误代码:无效)从文件的位置0开始的行中的JSON解析错误:file-00000000.遇到没有对象启动的数组的开始.(错误代码:无效)

这是JSON

[{'instrument_token': 11192834, 'average_price': 8463.45, 'last_price': 8471.1, 'last_quantity': 75, 'buy_quantity': 1065150, 'volume': 5545950, 'depth': {'buy': [{'price': 8471.1, 'quantity': 300, 'orders': 131072}, {'price': 8471.0, 'quantity': 300, 'orders': 65536}, {'price': 8470.95, 'quantity': 150, 'orders': 65536}, {'price': 8470.85, 'quantity': 75, 'orders': 65536}, {'price': 8470.7, 'quantity': 225, 'orders': 65536}], 'sell': [{'price': 8471.5, 'quantity': 150, 'orders': 131072}, {'price': 8471.55, 'quantity': 375, 'orders': 327680}, {'price': 8471.8, 'quantity': 1050, 'orders': 65536}, {'price': 8472.0, 'quantity': 1050, 'orders': 327680}, {'price': 8472.1, 'quantity': 150, 'orders': 65536}]}, 'ohlc': …
Run Code Online (Sandbox Code Playgroud)

json google-bigquery

1
推荐指数
2
解决办法
5855
查看次数

标签 统计

google-bigquery ×1

json ×1