Skip to content
Prev 374519 / 398513 Next

help with json data from the web into data frame in R

The R interpreter tells me there's a missing comma after the line: 

"format" = "json"

Fixing that syntactic error I get:

str(zWebObj)
# ---bein console output
 atomic [1:1] {"query":{"printrequests":[{"label":"","key":"","redi":"","typeid":"_wpg","mode":2}],"results":{"File:2166320938 | __truncated__
 - attr(*, "Content-Type")= Named chr [1:2] "application/json" "utf-8"
  ..- attr(*, "names")= chr [1:2] "" "charset"
#--- end console output-----
js1 <-fromJSON(zWebObj)
#--------
Error: lexical error: inside a string, '\' occurs before a character which it may not.
          title":""}},"serializer":"SMW\Serializers\QueryResultSeriali
                     (right here) ------^


I'm not really a JSON expert, so am not equipped to offer debugging assistance there.