Make JSON greppable!
open sourceMITself-hostablefree
gron transforms JSON into discrete assignments (json.a.b[0] = "x") so you can grep for what you want and see the absolute path to it. It can work backwards with --ungron to turn filtered lines back into JSON, and can fetch URLs directly. It helps explore APIs that return large, poorly documented JSON.
Ways to install
Package managers
Problems it solves
- I do not know the path to the field I need in this huge JSON response
- grep a JSON file and see where in the structure each match lives
- explore an undocumented API response quickly
- jq syntax is hard when I just want to find a key
- diff two JSON files line by line in a meaningful way
- filter JSON with grep and turn it back into JSON
- find which nested object contains a particular value
- flatten JSON into lines for shell tools
Features
- flatten JSON to assignments
- ungron
- fetch URLs
- no runtime dependencies
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what gron does.
