n8n LabBeginner

Access the First Item of an Array in n8n

Your API request returned a list of line items in an order. In JavaScript and n8n, arrays start at index 0. Extract the name of the first item.

Live Execution Simulator Idle
πŸ“₯
Incoming Data
βš™οΈ
n8n Node
🎯
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.

Incoming Payload / Data:

{
  "items": [
    { "name": "Pro Subscription", "price": 49 },
    { "name": "Setup Fee", "price": 99 }
  ]
}
$json.

βš™οΈ Your expression is executed against test data β€” any correct solution passes. +10 XP

Related labs