Get Keys
Retrieves all keys from a JSON object.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
Inputs
- Payload - JSON object from which to retrieve keys.
Options
This node does not have any options.
Outputs
- Keys - Array of strings containing all keys from the JSON object.
How It Works
The Get Keys node extracts all key names from a JSON object. When executed, the node:
- Receives a JSON object through the Payload input
- Iterates through all key-value pairs in the object
- Collects all key names into an array
- Outputs the array of keys through the Keys output
Requirements
- Valid JSON object as input
Error Handling
The node will return specific errors in the following cases:
- Invalid JSON object in the Payload input
Usage Notes
- This node is useful for inspecting JSON object structures
- Returns only the top-level keys, not nested keys
- The order of keys in the output array matches the order in the JSON object
- Works with any valid JSON object structure
- Useful for data analysis and validation workflows
- Can be combined with other JSON nodes to build dynamic processing pipelines
- The output array can be used with array processing nodes
- If the input object is empty, the node will return an empty array
- Works with objects containing any type of values including nested objects and arrays