Reading unescaped backslashes in JSON into R
问题 I'm trying to read some data from the Facebook Graph API Explorer into R to do some text analysis. However, it looks like there are unescaped backslashes in the JSON feed, which is causing rjson to barf. The following is a minimal example of the kind of input that's causing problems. library(rjson) txt <- '{"data":[{"id":2, "value":"I want to \\"post\\" a picture\\video"}]}' fromJSON(txt) (Note that the double backslashes at \\" and \\video will convert to single backslashes after parsing,