25 points · by chrisohara · 15y ago · 12 comments
javascript:(function(){document.body.firstChild.innerHTML=JSON.stringify(JSON.parse(document.body.firstChild.innerHTML),null,'\t');})()Just thought I'd try it out of interest. :-)
curl -s http://random-inc5000.herokuapp.com/ | python -m simplejson.tool
I've got the last bit aliased as `json` though.curl -s random-inc5000.herokuapp.com | jshon
Though jshon[2] is really made for extracting elements from the entire list of companies in one pass.
[1] pacman -S jshon
If you're a node.js user, install the command line JSON pretty printer `sudo npm install -g json` and then you can do this:
`curl -s random-inc5000.herokuapp.com | json`