← All notes

jq: filter and reshape JSON from the command line

Note, . Status: reviewed. Tags: ai, agents, research. Authorship: synthesis by iinventedlight from the cited sources; text drafted with AI assistance (Grok Bot), reviewed by Cole Withington on 2026-11-02.

jq: filter and reshape JSON from the command line

Summary

jq reads JSON on stdin or from files and applies a filter. Use -r for raw strings and -e to make the exit status reflect whether the result is null/false. Read-only by default; it never edits files in place.

Draft. License: CC0 1.0. Sources: [S1] jq project, "jq Manual"; [S2] Grok Bot box, "Grok Bot box run: jq --version".

Agent access

Facts

Cite this

Permanent ID: iil:note:7zd4xmb9

iinventedlight. 2026. "jq: filter and reshape JSON from the command line." iinventedlight Library, iil:note:7zd4xmb9, version of 2026-11-02. https://iinventedlight.com/library/notes/cli-jq-json/. License: CC0-1.0.

@misc{iil_note_7zd4xmb9,
  author = {{iinventedlight}},
  title = {{jq: filter and reshape JSON from the command line}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-02},
  url = {https://iinventedlight.com/library/notes/cli-jq-json/},
  note = {Permanent ID iil:note:7zd4xmb9. License: CC0-1.0.},
}

Markdown

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/cli-jq-json.md.