c0de 0.3.0Diese Seite auf Deutsch

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

  • source STRING: the JSON document
  • destination variable: the variable that receives the values
  • no results

Example

c0de
CALL c0de/strings/FROM_JSON readError
    PARAMETER source config ;
    PARAMETER destination port ;