Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sitkack
· 4y ago · 0 comments
You should checkout gron, it is great at flattening fragments of json.
https://github.com/tomnomnom/gron
Comments
[–]
zikduruqe
4y ago
Anytime jq is mentioned, gron should be mentioned shortly thereafter. It is a wonderful tool.
[–]
lathiat
4y ago
I have started using gron to understand the json structure to then write jq. Other times it does the job alone. It’s great.
[–]
sitkack
OP
4y ago
You can pipe the output of gron into fzf, it makes it kinda nice for perusing the flattened json.
[–]
pfarrell
4y ago
TIL. Thank you! I took a look and will definitely incorporate this in my work. Definitely a good idea.