Build JSON
Makes JSON from a list of values, e.g. for an HTTP Request's body. One per line as name = value; a type after the name makes it a number, yes/no, list or JSON (age:number = 42, tags:list = ${tags}), and a dot nests it (user.name = Ann). Values are put in as data, so quotes or braces in them can't change the JSON.
In the editor, press Space on the canvas to add a step, then open Conditions > Text & math, or type its name. In Simple mode it's under Show all, and search finds it.
Settings
Values
TextOne per line as name = value or name:type = value. Types: text (the default), number, integer, bool, list (one item per line becomes a list) and json.
Format
A choiceOutputs
Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.
| Output | Gives | What it is |
|---|---|---|
| JSON | Text | |
| Valid | Yes or no | False when a line couldn't be read; the reason is in Error. |
| Error | Text | Why it couldn't be made; empty when it worked. |