Skip to main content

Parse JSON

Parses a JSON string into a native object or array, making its fields accessible via expressions in downstream nodes.

Properties

PropertyRequiredDescription
JSON InputYesThe JSON string to parse. Supports expressions

Output

FieldTypeDescription
dataObject | ArrayThe parsed JSON value. An object when the root is {}, an array when the root is []

Access the output in downstream nodes:

{{ $nodes['Parse JSON'].data }}
{{ $nodes['Parse JSON'].data.user.email }}
{{ $nodes['Parse JSON'].data[0].id }}

Replace Parse JSON with the actual name you gave the node.

Behaviour

  • An empty or whitespace-only input produces data: null without failing.
  • If the string is not valid JSON the node fails with a parse error.
  • All standard JSON value types are preserved: objects, arrays, strings, numbers, booleans, and null.

Example

Parse a JSON response from an HTTP request and read a field:

  1. Add an HTTP Request node to call your API.
  2. Add a Parse JSON node. Set JSON Input to {{ $nodes['HTTP Request'].responseBody }}.
  3. In a downstream node, access fields with {{ $nodes['Parse JSON'].data.fieldName }}.

To loop over a JSON array response:

  1. After Parse JSON, connect a Loop node.
  2. Set Items to {{ $nodes['Parse JSON'].data }}.
  3. Inside the loop body, reference each item with {{ $nodes['$loop'].currentItem }}.

Notes

  • If you already have a JavaScript object (not a string), you do not need this node — use the value directly in expressions.
  • For XML responses use Parse XML. For CSV responses use Parse CSV.