I am trying to load a local json file into R. I have tried the rjson and the RJSONIO package but I get the same error. E.g., with the rjson package I tried the following:
testdata<-fromJSON(file="testfile2.json",method="C",unexpected.escape="skip")
And it returns:
Error in fromJSON(file = "testfile2.json", method = "C", unexpected.escape = "skip") :
unexpected character '<ff>
The json test file is a very simple file (I have a more complex file that I want to load once the error is remove):
{
"item1": "I love jquery4u",
"item2": "You love jQuery4u",
"item3": "We love jQuery4u"
}
Would be great if someone could tell what I am doing wrong. Thank you!