For the complete documentation index, see llms.txt. This page is also available as Markdown.

Extract JSON Data with JMESPath

Select a value or list from JSON that is already available in the workflow. Use it to pass only the fields needed by the next action.

Extract a field

  1. Pass the JSON object or array to JSON Input.

  2. Enter Field Path using the structure of that input. user.name selects a nested name; items[0].id selects the first item’s ID; [].name selects names from a top-level list.

  3. Run the tool and inspect Output. Check both the value and whether the result is a single item or a list.

Result: Output contains the selected value as text. Objects and lists are serialized as JSON; a missing value becomes an empty string.

Behavior and troubleshooting

Array positions start at zero. Missing paths can return an empty result, so check that the upstream step supplied the expected structure. Use JSON Processor when you want to read a JSON file URL or return JSON text.

Inputs

Field
Parameter
Description

JSON Input (required)

json_input

JSON data to extract from. Can be a JSON or an Array of JSON objects

Field Path (required)

field_path

Path to extract (e.g., 'user.name', 'items[0].id', or '[:].name' for all array items)

Outputs

Field
Parameter
Description

Output

output

The extracted data from the JSON string

Data Types, Lists, Missing Values, and Empty Results

Was this helpful?