r - JSONLITE parsing not working on large JSON file but works on smaller one -




i have small bit of code top import json data data frame. works fine:

library(jsonlite) library(tidyr)   ts01 <- fromjson({"ts01data.json"}, flatten = true, simplifydataframe = true) ts01 <- ts01[, c("sid",  "t","lat","lon","alt","v","sat","brg","pa","pt","tprx","lnks")] ts01unnested <-unnest(ts01,lnks) 

when try , import small json file in format, works fine (4 mb). when import large json file (1 gb). following:

error in parse_con(txt, bigint_as_char) :    lexical error: invalid char in json text.           tprx": 1452169.0, "sat": 7}, downloading... {"pt": 120, "lnk                      (right here) ------^ 

this doesn't make sense me format of both json datasets same.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Django Import by filename is not supported -