jq
Lightweight command-line processor for slicing, filtering and transforming JSON data.
Tested on Linux
Use it
Linux x86_64
Download jq-linux-amd64 binary from GitHub releases and install to ~/.local/bin
curl -fL https://github.com/jqlang/jq/releases/download/jq-1.8.2/jq-linux-amd64 -o /tmp/jq && chmod +x /tmp/jq && mkdir -p ~/.local/bin && mv /tmp/jq ~/.local/bin/jq && ~/.local/bin/jq --version
Check that it works
jq --versionThe output should contain “jq-1.8.2”.
First thing to try
cat > /tmp/sample.json <<'JSON'
{"name": "test", "version": "1.2.3", "items": [10,20,30,40,50], "users": [{"id":1,"active":true,"name":"alice"},{"id":2,"active":false,"name":"bob"},{"id":3,"active":true,"name":"carol"}]}
JSON
cat > /tmp/package.json <<'JSON'
{"name": "myapp", "version": "2.5.0"}
JSON
cat /tmp/sample.json && echo "---" && cat /tmp/package.jsonjq '.items[1:4]' /tmp/sample.jsonWhat it does
- Slice JSON dataTested
- Filter JSON dataTested
- Transform structured dataTested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 3 of 3 features work
- Works offline
macOS: the project says it runs there; pickfit hasn’t tried it.
Good for
- extract the version from a package.json file
An alternative to sed, awk and grep.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 4 Nov 2026
- Version 1.8.2
Differences the test machine hit
- README: docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'
In the test: Docker not available in box; used native binary equivalent: jq '.version' package.json - README: install step 1 runs jq
In the test: nothing to change; a note: the box ran jq, downloaded, without reading it first, so pickfit did not inspect it