jq Reference: Filters, map/select, Recursive Descent, and Real-World curl+jq Patterns
jq is the best way to work with JSON in shell scripts. Here are the patterns that come up constantly.
Basic navigation
echo '{"user":{"name":"Alice","roles":["admin","user"]}}' | jq
jq '.user.name' # "Alice"
jq '.user.roles[0]' ...
releaserun.hashnode.dev2 min read