I am trying to read in a JSON file (that I unfortunately cannot post here) into R using the fromJSON
function from the jsonlite package.
Thereby, I always get a parsing error and I don't know why. The really strange thing is that I have two versions of the same file that appear absolutely the same to me in e.g. jsonformatter.org .
Does anyone know this error or how to track it? Is there another good way to read in JSON files into R?
Here is the error message:
Error in parse_con(txt, bigint_as_char) :
lexical error: invalid char in json text.
ÿþ{ (right here) ------^