JSON & YAML Wranglin'

jq, yq, flat, etc.

Warning: This section is under construction

Tools

Install all three with nix

Examples

Output:

Find all hrefs

jq -r 'to_entries | map(select(.key | match("(path|href)$";"i"))) | map(.value)'

Output

Get last CloudFront distribution

Incase you don’t know the keys that are available and your output gets truncated by your terminal, you can use keys to debug.