Understanding n8n's data structure is crucial for building effective workflows. Every piece of data in n8n flows as items — arrays of JSON objects.
Items
Each node receives and outputs an array of items. Each item is a JSON object with a `json` property containing the actual data.
Binary Data
Files and attachments are stored as binary data alongside JSON data. Each item can have both `json` and `binary` properties.
Referencing Data
Use expressions to access data from the current or previous nodes: - `$json.fieldName` — Current item's JSON field - `$input.all()` — All input items - `$node["NodeName"].json.field` — Specific node's output