Skip to main content

JQ

JQ is a lightweight processing language for manipulation of JSON objects. It is often used to look up specific nodes from a payload, but can also be used to transform the data.

The Unmeshed JQ engine is compatible with JQ version 1.6.

Input​

FieldDescriptionMandatoryJSON Example
inputThe JSON data to manipulate.✔{ "version": 12 }
scriptThe JQ expression to run against the provided input.✔".version"

Output​

FieldDescription
transformedA JSON object containing the processed input.

Example​

Here's an example that uses JQ syntax to get all the nationalities of best-selling authors published after 2019.

{
"bestsellers": [
{
"title": "Where the Crawdads Sing",
"author": {
"name": "Delia Owens",
"nationality": "American"
},
"published_year": 2018,
},
{
"title": "The Midnight Library",
"author": {
"name": "Matt Haig",
"nationality": "British"
},
"published_year": 2020,
}
]
}
tip

To use another Step's output as the input for the JQ Step, use the following template syntax:

{{ steps.your_steps_ref.output.fieldName }}