Skip to content

Build JSON

  • Condition
  • Text & math
  • Advanced mode

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

Text

One 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.

Starts as: name = Ann age:number = 42 Takes ${variables} and expressions Can come from another step's output

Format

A choice
  • Compact: One line.
  • Indented: Easier to read.

Starts as: Compact Can come from another step's output

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Build JSON outputs
OutputGivesWhat it is
JSONText
ValidYes or noFalse when a line couldn't be read; the reason is in Error.
ErrorTextWhy it couldn't be made; empty when it worked.

More in Text & math