News for hackers. Stuff that matters.
Re:An Introduction to JQ by jareware on Wednesday August 25, 2021 @04:41AM (#28299276)
If there's an API for working with data that you know well already, it's somewhat pointless to learn the (quite esoteric) jq one.

Just pipe curl to node (https://github.com/jareware/howto/blob/master/Replacing%20jq...) or Python or Ruby or whatever you already know!

Re:An Introduction to JQ by pwdisswordfish8 on Wednesday August 25, 2021 @04:48AM (#28299320)
Or use that language’s native HTTP client and cut out the shell middleman.
Re:An Introduction to JQ by throwaway894345 on Wednesday August 25, 2021 @10:34AM (#28302193)
jq is much more terse. When I’m working in bash, I much prefer to write `kubectl get secret foo -o json | jq -r '.data | map_values(@base64d)'` rather than the equivalent Python.