jq
Installation
SKILL.md
jq — JSON on the command line
jq (jqlang/jq) is the standard filter language for JSON: read a
stream of JSON values, apply a filter to each value, print the results. This skill is original
text written from live binary behavior, pinned to jq 1.8.2 (the current release as of
writing); upstream's license is not a plain SPDX-MIT (the GitHub API reports NOASSERTION, its
COPYING bundles terms for embedded components) — irrelevant here, because no jq code is quoted,
only measured behavior. The exit taxonomy and // semantics below were re-measured identical on
a distro jq-1.7 build.
The stream model — read this first
jq runs the filter once per JSON value on the input stream, not once per invocation:
printf '{"a":1}\n{"a":2}\n' | jq '.a' # prints 1, then 2
Consequences, all measured: