Skip to main content

Parse JSON

Parses JSON text or a JSON file into an object or array, available as data.

Properties​

PropertyRequiredDescription
JSON InputYesJSON text, or a file from another step (up to 50 MB). Usually an expression

Output​

FieldTypeDescription
dataAnyThe parsed value — object, array, string, number, boolean or null
{{ $nodes['Parse JSON'].data.user.email }}
{{ $nodes['Parse JSON'].data[0].id }}

Behaviour​

  • Text and files (inline or stored) are both accepted. A byte-order mark is ignored.
  • If the input is already structured data (an object or array), it is passed through as data.
  • Empty input gives data: null.
  • Invalid JSON fails the step with a parse error.

Example​

A webhook sends a JSON document as an uploaded file:

  1. Add Parse JSON with JSON Input {{ $trigger.files[0] }}.
  2. Add a Loop with Items {{ $nodes['Parse JSON'].data.orders }}.
  3. In the body, read {{ $nodes['Loop'].currentItem.total }}.

Notes​

  • The HTTP Request step already parses JSON responses (including +json types), so you don't need Parse JSON after it.
  • For XML use Parse XML; for CSV use Parse CSV.