FROM_JSON
Reads a JSON document into a variable.
destination must be a single variable name; the function writes into it directly. The document must fit the type of the variable. On an error (TYPE_MISMATCH, INVALID_ARGUMENT, UNKNOWN_KEY, STRING_TOO_LONG) the variable stays unchanged.
Parameters and results
sourceSTRING: the JSON documentdestinationvariable: the variable that receives the values- no results
Example
c0de
CALL c0de/strings/FROM_JSON readError
PARAMETER source config ;
PARAMETER destination port ;