Last active
August 29, 2015 14:27
-
-
Save JakeRuss/089b9003bef72b889224 to your computer and use it in GitHub Desktop.
Parse Claritin json string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(jsonlite) | |
url <- "http://www.claritin.com/webservice/allergyforecast.php?zip=33956" | |
df <- fromJSON(url) |
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
those extraneous 4 bytes show up alot in httr-json & xml responses. i need to poke at the httr/curl code more to see if i can narrow that down.