All apps/jq

jq

jq

jq is a lightweight and flexible command-line JSON processor akin to sed, awk, grep, and friends for JSON data.

Runs as jq|macOS, Linux, Windows|jqlang.org

Command form

ai-draft · 2 tasks · 11 fields

Run a jq filter over JSON files or standard input. Streaming, module paths, variable binding and test running are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui jq
Filter JSONExample values, fixed in this page — nothing here reaches a terminal
Basic
Filter*
string
Input files
file
Raw strings
--raw-output
Advanced
Sort keys
--sort-keys
TasksEach one presets the form for one job
Query JSON files
filterfilesraw_outputsort_keys
Compact one value per line
filterfilescompactraw_output
ParametersOnly these flags are editable in the form
Filter
The jq program, for example .items[].name. Quote it for the shell.
string · positional 0
Input files
Leave empty to read standard input.
path · positional 1 · repeatable
Raw strings
Print string results without JSON quotes.
boolean
--raw-output-r
Compact output
One JSON value per line instead of pretty-printing.
boolean
--compact-output-c
Slurp into array
Read all inputs into one array and run the filter once.
boolean
--slurp-s
Null input
Do not read any input; run the filter once with null.
boolean
--null-input-n
Raw text input
Treat each input line as a string instead of parsing JSON.
boolean
--raw-input-R
Sort keys
boolean
--sort-keys-S
Indent with tabs
boolean
--tab
Force color
boolean
--color-output-C
Exit status from result
Exit non-zero when the last output is false or null.
boolean
--exit-status-e
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed jq against its version. A form that does not match your version is not offered.