jq JSON processor
jqQuery and transform JSON from a file path or raw string using filter expressions, returning compact structured output instead of reading entire files.
Instructions
Query and transform JSON using jq expressions. Accepts a file path or raw JSON string. Returns parsed, structured output — far more compact than reading a full JSON file. The filter is passed directly to jq (no shell), so shell-style escaping such as backslash-escaped quotes is neither needed nor supported — write the filter exactly as jq expects it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to a JSON file | |
| input | No | Raw JSON string to process (alternative to file) | |
| slurp | No | Read entire input into array (-s) | |
| filter | No | jq filter expression (default: '.') | . |
| compact | No | Compact output (-c) | |
| rawOutput | No | Output raw strings without JSON encoding (-r) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| retained | No | ||
| multiline | Yes |