使用JSONLITE导入R中的JSON文件时出错

时间:2017-08-04 09:26:51

标签: json r import

我正在使用JSON lite在R中导入JSON数据,但它给了我一个错误。我已经看过现有的帖子,但无法找到解决方案。有人可以帮我吗?谢谢

 library(jsonlite)
 data <- fromJSON('C:/Trajectories_DATA/017789_A3.json')

 Error: Error: lexical error: invalid char in json text.
                                   C:/Trajectories_DATA/017789_A3.
                 (right here) ------^

     {
      "type": "FeatureCollection",
       "features":
            [ 

            {
                "type": "Feature",
                "geometry":
                {
                "type": "Point",
                    "coordinates": [-0.254282663741729, 44.544465799932546]
                },
                "properties":
                {
                    "time": "5000",
                    "location": {
                      "building": "1",
                      "floor": "0"
                    }
                }
            },
             ....
  ]}

0 个答案:

没有答案