Skip to Content
DocumentationTransformsExtract JSON Values using JMESPath

Extract JSON values using JMESPath

Creates a new column using the result of a JMESPath query.

Example

data

{"a": {"b": "value_1"}}
{"a": {"b": "value_2"}}

query:

a.b

data

parse

{"a": {"b": "value_1"}}value_1
{"a": {"b": "value_1"}}value_2

Configuration

Parse Type

JMESPath Query should be selected for this transform.

Column

Select a column to parse using JMESPath query.

Query

Enter a JMESPath query to extract values.

Where (Optional)

Add a condition to define when to apply the transform.

Screen Shot of JMESPath transform

Adding the Transform

  1. Click on + Add Script Step on the right side of the wrangler.
  2. Enter JMESPath in the search box on top.
  3. Find Extract JSON using JMESPath query transform in the list below.
Screen Recording of adding the JMESPath transform

Key Considerations

  • The default name of the new column is parse, to change it you can use the Rename Column transform.