I often need to make API calls to check if a (micro) service is working when debugging a specific problem. JSON can look gnarly on the command unless using the
jq tool. The tool parses the raw JSON coming back from the server and formats it in a readable way. There are tons of options and reading the tutorial is recommended. The example command shows the simplest usage (which is often good enough):
$ curl https://example.com/api/v1/posts | jq
jq can be installed with
brew install jq on the Mac and Chocolatey on Windows.