我想读一个json文件,其结构如下所示。我试过fromJson,但它只读了第一个块。你能帮我指定分隔符来读取所有文件吗?
非常感谢
json_data <- fromJSON(paste(readLines("C:C:/Users/aa/Data-test.json"), collapse=""))
警告讯息: 在readLines中(&#34; C:/Users/aa/Data-test.json"): 在C&C上找到不完整的最后一行:/Users/jsalim/Desktop/Docapost_20160718/FILES/Extract-Morgane_1307/Data-device2.json'
{
"id" : "aaa",
"dateModification" : "2016-06-04T04:29:30Z",
"active" : true,
.....
}
{
"id" : "bbbb",
"dateModification" : "2016-06-04T04:29:30Z",
"active" : true,
.....
}
{
"id" : "ccc",
"dateModification" : "2016-06-04T04:29:30Z",
"active" : true,
.....
}