Rjsonio vs jsonlite lexical error

191 Views Asked by At

New to this so please excuse any mistakes.

I am using R to convert some JSON files and using JSONLITE is perfect in relation to the format that it produces. However I keep getting a lexical error similar to the below

Error in parse_con(txt, bigint_as_char) : lexical error: invalid char in json text. ed that it was delivered to "letterbox" but it wasn't\" ]\n (right here) ------^

So I decided to use the JSONIO package and there is no lexical error with this package but the format is not as easy to work with.

So suppose I have two questions:

1: Does any one know why the error is produced using Jsonlite and not jsonio 2; is there an easy way to get jsonio to produce outputs like jsonlite?

Thanks

Ibrahim

0

There are 0 best solutions below