Something I did not realize until now: you can format json on the command line by piping it to “python -m json.tool”. For example:

curl (url) | python -m json.tool

Hat tip to Linode’s API documentation.