swyggq 发表于 2017-3-9 23:35 
不过话说……我并不确定逐行rbind会不会死
a=data.frame(a)
b=data.frame(b)
不好意思,之前没有看到你的回复,是这样的,json文件原来的样子是
{"reviewerID": "A2IBPI20UZIR0U", "asin": "1384719342", "reviewerName": "cassandra tu \"Yeah, well, that's just like, u...", "helpful": [0, 0], "reviewText": "Not much ...despite their pricing,", "overall": 5.0, "summary": "good", "unixReviewTime": 1393545600, "reviewTime": "02 28, 2014"}
{"reviewerID": "A14VAT5EAX3D9S", "asin": "1384719342", "reviewerName": "Jake", "helpful": [13, 14], "reviewText": "The product ...this product! :]", "overall": 5.0, "summary": "Jake", "unixReviewTime": 1363392000, "reviewTime": "03 16, 2013"}
{"reviewerID": "A195EZSQDW3E21", "asin": "1384719342", "reviewerName": "Rick Bennette \"Rick Bennette\"", "helpful": [1, 1], "reviewText": "The primary... you put it.", "overall": 5.0, "summary": "It Does The Job Well", "unixReviewTime": 1377648000, "reviewTime": "08 28, 2013"}
这个东西,我是这样读的
library(rjson)
data = fromJSON(file = 'Musical_instruments_5.json')
但是结果只有最后一行,就是data的数据不全
我修改json文件之后,再这样读,就是列表嵌套的格式了