Skip to main content

Convert

Turns text written as JSON into data with fields that later steps can use.

Properties​

PropertyRequiredDescription
Input valueYesThe JSON string to parse, usually an expression

Behaviour​

InputOutput
A JSON stringThe parsed value (object, array, number…)
An object or array alreadyPassed through unchanged
An empty stringAn empty object {}
Invalid JSON or nothingThe step fails

When to use it​

Most steps already give you structured data — for example the HTTP Request step parses JSON responses automatically. Use Convert when JSON arrives as text, such as a JSON string inside a form field, a database column, or an email body.

Input: {{ $trigger.body.payload }} with the value "{\"orderId\": 42, \"items\": [\"a\", \"b\"]}"

Output:

{ "orderId": 42, "items": ["a", "b"] }
{{ $nodes['Convert'].orderId }}

Parse JSON does the same job but also accepts JSON files and puts the result under data.