Skip to contents

jsonlite::fromJSON() wrapped in rlang::try_fetch() to make calls smoother.

Usage

get_json(url)

Arguments

url

String. A url fed to jsonlite::fromJSON()

Value

List. JSON as a list

Examples

if (FALSE) { # \dontrun{
get_json("https://www.example.com/example.json")
} # }