n8n LabIntermediate
Get All Field Names with Object.keys() in n8n
A form tool sends different fields each time. List which fields were submitted.
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:
{
"name": "Lina",
"email": "[email protected]",
"budget": "5k"
}
Object.
⚙️ Your expression is executed against test data — any correct solution passes. +20 XP
✅ Solution & explanation
Object.keys($json)
Output: ["name", "email", "budget"]
Object.keys() returns an array of an object's property names. Object.values() returns the values and Object.entries() returns [key, value] pairs.💡 Pro tip: Build a readable summary: Object.entries($json).map(([k, v]) => `${k}: ${v}`).join('\n').