I find JSON has a great balance between programmatic handling and human readability. But this leads to it being bit verbose.
I wrote about three tools in my toolbox for handling JSON on command line: jq, jless and fx.
Do you use something different? Share tips in replies!
@hamatti tbh I’m so bad at jq, I often use the Python interpreter to deal with JSON.
Also I try to use protobuf a lot nowadays, especially for internal RPCs.
@shimst3r I also often jump into Python whenever my jq (or shell scripting) skills fall short.
@hamatti that’s somewhat comforting to know
Thanks, I didn't know about jless and fx, very cool.
There is also one called yq, which is like jq but for yml files. I've ended up using that one more often -- most of the giant files I've wanted to query have been swagger/openapi documents, and yml seems more popular there.