When developing apps and games you may need to read JSON files quickly in the Terminal, this can be a pain.
JSON is a right pain to read in the Mac terminal but Cloudant have some great tips for viewing JSON here.
First of all here is a random JSON file displayed in the mac terminal using curl.
What a mess.
Install the ./jq lightweight command line JSON processor from http://stedolan.github.io/jq/
Install (type this in the terminal and install)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install jq
Now lets try the curl command again with ” ! jq .” added to the end of the curl request.
curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq .
If you just want a web based tool try the Postman extension for Google Chrome.