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:
dictvalues are converted to JSON objectslistvalues are converted to JSON arraysstringvalues are encoded as JSON stringsdoubleandlongvalues are encoded as JSON numbersdatetimevalues are encoded as per the given datetime formatterbinaryvalues are encoded as a base64 stringnilis encoded as JSON nullNaNand(+-)Infinityare encoded as JSON nullfunctionvalues are encoded as JSON null
Settings
| Name | Type | Description |
|---|---|---|
Pretty Print |
boolean |
If If |
Datetime Formatter |
function |
A function of the form If |