R/read_json_from_url.R
read_json_from_url.Rd
You normally don't use this; this function is exposed for convenience, but you normally use functions that import specific things (e.g. questionnaires).
read_json_from_url(url, attribute, elementId = NULL, elementClass = NULL)
The URL where the JSON can be found.
The attribute holding the JSON.
Specify exactly one of these: either the identifier of the element holding the JSON, or the class name of a class that may be applied to several elements (which will then all be returned).
An object if specifying elementId
, or a list of objects if
specifying elementClass
(although is there's only one element of
elementClass
, the only object will returned anyway).