gron
Command-line tool that transforms JSON into discrete assignments so it can be searched with grep, and converts them back into JSON.
Tested on Linux
Use it
Linux x86_64
Download gron v0.7.1 linux-amd64 release tarball, extract, move binary to ~/.local/bin
cd /tmp && curl -fsSLO https://github.com/tomnomnom/gron/releases/download/v0.7.1/gron-linux-amd64-0.7.1.tgz && tar xzf gron-linux-amd64-0.7.1.tgz && mkdir -p ~/.local/bin && mv gron ~/.local/bin/
Where the README and reality differ
- README: tar xzf gron-linux-amd64-0.1.5.tgz
What worked: The current release is v0.7.1; download gron-linux-amd64-0.7.1.tgz from the GitHub releases page
Check that it works
gron --helpThe output should contain “Transform JSON (from a file, URL, or stdin) into discrete assignments to make it greppable”.
First thing to try
mkdir -p testdata && cat > testdata/two.json <<'EOF'
{"name":"Tom","github":"https://github.com/tomnomnom/","likes":["code","cheese","meat"],"contact":{"email":"mail@tomnomnom.com","twitter":"@TomNomNom"}}
EOFgron testdata/two.jsonRun gron <file> on a JSON file to see its contents as one assignment per line.
What it does
- Flatten JSON into lines you can grepTested
How to use it
- Run
gron <file>to print each value as an assignment such asjson.contact.twitter = "...";. - Pipe the output to
grepto find the path to a value.
- Run
- Turn filtered assignments back into JSONTested
How to use it
- Run
gron <file> | grep <pattern> | grep -v <pattern> | gron --ungronto keep only the lines you want and rebuild them as JSON.
- Run
- Read JSON from a file, URL, or standard inputTested
How to use it
- Pass a file directly with
gron <file>. - Or pipe JSON in with
cat <file> | gron.
- Pass a file directly with
- Output gron data as a JSON streamNot shown working
How far pickfit got
Linux x86_64
- Installs
- Starts
- 3 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- explore large JSON API responses with poor documentation
- diff two JSON files
- find the path to a value in deeply nested JSON
An alternative to jq.
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 15 Nov 2026
Differences the test machine hit
- README: sudo mv gron /usr/local/bin/
In the test: mv gron ~/.local/bin/ (no root in this box) - README: gron testdata/two.json
In the test: testdata/two.json is in the repository but does not come with the binary; it was recreated by hand