Recursive descent in jq

wget -O - -q 'https://reddit.com/r/unixporn/new.json' | jq '..|.permalink? | select(.)'

By far the most useful jq operator I’ve used is recursive descent: ... It can take a positively heinous json blob and pick out the attributes/keys you care about…

Source: https://news.ycombinator.com/item?id=23696344