Andrez Segovia

Formatting JSON returned by cURL in the terminal

Published on • • 24 Words

Install the jq package:

macOS:

1brew install jq

Linux:

1sudo apt-get install jq

How to use it:

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