JSON Formatter
Function converting data to a JSON string
Evaluation
This expression evaluates to a function of the form:
(x) -> string
The function is consistent with formatter semantics used for data to string conversion, as used for example by the CSV Output step.
Processing
Argument x
is converted into a JSON equivalent using the following rules:
dict
values are converted to JSON objectslist
values are converted to JSON arraysstring
values are encoded as JSON stringsdouble
andlong
values are encoded as JSON numbersdatetime
values are encoded as per the given datetime formatterbinary
values are encoded as a base64 stringnil
is encoded as JSON nullNaN
and(+-)Infinity
are encoded as JSON nullfunction
values are encoded as JSON null
Settings
Name | Type | Description |
---|---|---|
Pretty Print |
boolean |
If If |
Datetime Formatter |
function |
A function of the form If |