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 json content from a URL

Usage

get_json(url)

Arguments

url

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

Details

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.

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 Nov. 12, 2024, 8:14 p.m.