3 ms·
You should checkout gron, it is great at flattening fragments of json. https://github.com/tomnomnom/gron https://github.com/tomnomnom/gron
by sitkack 4y ago
You should checkout gron, it is great at flattening fragments of json.
https://github.com/tomnomnom/gron https://github.com/tomnomnom/gron
- lathiat 4y agoI have started using gron to understand the json structure to then write jq. Other times it does the job alone. It’s great.
- sitkack 4y agoYou can pipe the output of gron into fzf, it makes it kinda nice for perusing the flattened json.
- pfarrell 4y agoTIL. Thank you! I took a look and will definitely incorporate this in my work. Definitely a good idea.
- zikduruqe 4y agoAnytime jq is mentioned, gron should be mentioned shortly thereafter. It is a wonderful tool.