To pretty print json on command line (assumes python-2.7) or so echo '{"test1":"A","test2":"B"}' | python -mjson.tool (or if you have node's underscore) curl http://some.web.com/file.json | underscore-cli print