7 ms·
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
by jareware 5y ago
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%20with%20node%20CLI.md https://github.com/jareware/howto/blob/master/Replacing%20jq...) or Python or Ruby or whatever you already know!
- pwdisswordfish8 5y agoOr use that language’s native HTTP client and cut out the shell middleman.
- throwaway894345 5y agojq 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.