get_json: Get json content from a URL

View source: R/get_json.R

get_jsonR Documentation

Get json content from a URL

Description

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.

Usage

get_json(url)

Arguments

url

A string containing a valid URL to pull the data from the data warehouse.

Value

A data frame.

Author(s)

Kelli F. Johnson

See Also

See all the ⁠pull_*⁠ functions for examples where this function is used, e.g., pull_catch().


nwfsc-assess/nwfscSurvey documentation built on April 29, 2024, 9:51 p.m.