get_json | R Documentation |
Get json content from a URL
get_json(url)
url |
A string containing a valid URL to pull the data from the data warehouse. |
Get information stored on the web in .json format using a URL. The content
is first pulled from the web as text with UTF-8 encoding. Then the text
is passed to jsonlite::fromJSON()
. This workflow ensures that the URL
is not mistaken for a file name rather than web content.
A data frame.
Kelli F. Johnson
See all the pull_*
functions for examples where this function is
used, e.g., pull_catch()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.