Andrez Segovia

Formatting JSON returned by cURL in the terminal

Install the jq package:

macOS:

brew install jq

Linux:

sudo apt-get install jq

How to use it:

curl -X GET "http://your-api-domain/resource/path" | jq .