JQ processes data by applying jq queries.
Interpretation Methods
The processor supports these interpretation methods:
- data
Options
| Field | Type | Description | Required |
|---|---|---|---|
| Query | String | jq query applied to data. | Yes |
Use Cases
Remove All Null and Empty Values
This query will remove all null and empty values (strings, objects):
walk( if type == "object" then with_entries( select( (.value != "") and (.value != {}) and (.value != null) ) ) else . end)
{"a":{"b":{"c":""}},"d":null,"e":"f"}
{"e":"f"}
Updated almost 3 years ago
