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.
Just pipe curl to node (https://github.com/jareware/howto/blob/master/Replacing%20jq...) or Python or Ruby or whatever you already know!