Skip to content

Instantly share code, notes, and snippets.

@JakeRuss
Last active August 29, 2015 14:27
Show Gist options
  • Save JakeRuss/089b9003bef72b889224 to your computer and use it in GitHub Desktop.
Save JakeRuss/089b9003bef72b889224 to your computer and use it in GitHub Desktop.
Parse Claritin json string
library(jsonlite)
url <- "http://www.claritin.com/webservice/allergyforecast.php?zip=33956"
df <- fromJSON(url)
@JakeRuss
Copy link
Author

In case anyone else comes late to this thread. Jeroen Ooms explains that this is a UTF-8 byte order mark (BOM). The development version of jsonlite on github removes this mark automatically, supplies a warning, and then continues to parse the json. Will be version 0.9.17 once it's on CRAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment