Skip to content

What it is for

The JSON utility converts between JSON and text, merges objects and runs JSONata queries to transform data. It is very handy for building request bodies, parsing AI answers or reshaping data between steps.

It has no triggers: it is used as an action inside flows started by other triggers.

Set up the connection

  1. 1It needs no connection: it is a built-in flooows utility.
  2. 2In the editor, add a step and search for JSON.
  3. 3Choose the conversion, query or merge action.
  4. 4Map the input data from earlier steps.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Convert Text to Json: map a JSON string into Text (for example an AI model's answer) to get an object whose fields you can map.
  • Convert Json to Text: pass a JSON object to get a string, useful for storing it in a sheet or sending it in a message.
  • Run JSONata Query: put the data in JSON Data and the expression in JSONata Query, for example $sum(items.price) to total amounts or items[status='paid'] to filter.
  • Merge JSON Objects combines several objects in Objects to Merge; Default Strategy and Field Strategies decide which value wins for repeated fields.

Tips

  • •Ask the AI to reply with valid JSON only before using Convert Text to Json.
  • •Test your JSONata expressions with real data using the step test.
  • •Use JSONata to avoid code steps for simple transformations.

Actions (4)

Operations available as flow steps. Expand each one to see its fields.

Convert Json to Text1 fields
FieldTypeRequired
JSONJSONYes
Convert Text to Json1 fields
FieldTypeRequired
TextLong textYes
Run JSONata Query2 fields
FieldTypeRequired
JSON DataJSONYes
JSONata QueryTextYes
Merge JSON Objects3 fields
FieldTypeRequired
Objects to MergeJSONYes
Default StrategyFixed listYes
Field StrategiesList of valuesNo

Common errors

Error converting text to JSON

The text is not valid JSON: strip extra text or surrounding code fences.

The JSONata query returns nothing

Check field paths and casing against the previous step's output.

Values overwritten when merging

Adjust Default Strategy or set Field Strategies for the affected fields.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps