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)

Arguments

url

The URL where the JSON can be found.

attribute

The attribute holding the JSON.

elementId, elementClass

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).

Value

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).