FlowmageDocs

Stringify

Makes JSON text out of any value, compact or indented.

Settings

SettingWhat it is
ValueThe result is under text.
IndentationCompact is one line — indent when a person will read the output.
Sort keysSorts keys at every level, so the same data always produces the same text.
Technical details
KeyValue
valueany JSON
indent"2" or "4" or "compact" or "tab", by default "compact"
sortKeystrue/false, by default false

Output

FieldType
textJSON textstring
Sample output, and the expression for each field
  • text"{\"a\":1}"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "indent": "compact",
    "sortKeys": false
  },
  "label": "Stringify",
  "type": "json.stringify",
  "version": 1
}