JSON Parser
Function parsing JSON strings to values
Evaluation
This expression evaluates to a function of the form:
(string x) -> any
The function is consistent with parser semantics used for string to data conversion, for example by the CSV Input step.
Processing
The JSON String x
is converted into a value representing the JSON contents using the following rules:
- JSON objects are converted to
dict
values - JSON arrays are converted to
list
values - JSON strings are converted to
string
values - JSON numbers are converted to
long
ordouble
values - JSON booleans are converted to
boolean
values - JSON null is converted to
nil
If x
is nil
, nil
is returned.
Settings
Name | Type | Description |
---|---|---|
Lenient |
boolean |
If If |