Something I see quite often is a combination of grep and cut to extract URLs from JSON objects, for example:
$ curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest \
| grep browser_download_url \
| cut -d '"' -f 4 \
| grep '\linux-amd64$' \
| wget -i -
This is neat because grep and cut are almost always available on Linux. And the approach works for all kinds of plaintext documents with a semi-expectable format, not just JSON, so the approach is worth keeping around. But for JSON in particular, this approach is unnecessarily fragile because of a few unreasonable assumptions:

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.