jsonToTibble | R Documentation |
Helper function to transform a JSON object to a tibble
jsonToTibble(jsonfile)
jsonfile |
An object obtained when a JSON file is downloaded |
A tibble
url <- "http://api.adu.org.za/cwac/sites/list?province=north20%west"
myfile <- httr::RETRY("GET", url) %>%
httr::content(as = "text", encoding = "UTF-8")
jsonfile <- rjson::fromJSON(myfile)
jsonToTibble(jsonfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.