News for hackers. Stuff that matters.
Re:Show HN - Random business from the INC5000 list in json (... by Kilimanjaro on Tuesday September 27, 2011 @10:20AM (#3043350)
Use this bookmarklet in Chrome for pretty printing json:

    javascript:(function(){document.body.firstChild.innerHTML=JSON.stringify(JSON.parse(document.body.firstChild.innerHTML),null,'\t');})()
Re:Show HN - Random business from the INC5000 list in json (... by code4pay on Tuesday September 27, 2011 @07:23AM (#3042786)
If you are a Perl user you can do curl -s random-inc5000.herokuapp.com | perl -MJSON -e 'print to_json(from_json(<>),{pretty=>1})'

Just thought I'd try it out of interest. :-)

Re:Show HN - Random business from the INC5000 list in json (... by flashingpumpkin on Tuesday September 27, 2011 @09:10AM (#3043072)
Similarly, with Python:

  curl -s http://random-inc5000.herokuapp.com/ | python -m simplejson.tool
I've got the last bit aliased as `json` though.
Re:Show HN - Random business from the INC5000 list in json (... by keenerd on Tuesday September 27, 2011 @10:57AM (#3043520)
If you are a shell or Arch[1] user,

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

[2] http://kmkeen.com/jshon/

Re:Show HN - Random business from the INC5000 list in json (... by WillyF on Tuesday September 27, 2011 @10:47AM (#3043462)
This is also good for job searching and client seeking--especially if you're a web developer/designer. The quality of the websites of Inc 5000 companies is astoundingly low, and I'm sure an enterprising person could do really well pitching their skills to these companies.
Re:Show HN - Random business from the INC5000 list in json (... by chrisohara on Tuesday September 27, 2011 @06:59AM (#3042741)
Good for some quick business ideas..

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`

Re:Show HN - Random business from the INC5000 list in json (... by AlexMuir on Tuesday September 27, 2011 @07:58AM (#3042867)
Er. Why didn't you just format it at your end?
Re:Show HN - Random business from the INC5000 list in json (... by Tichy on Tuesday September 27, 2011 @08:05AM (#3042886)
I suppose because proper JSON is not formatted.
Re:Show HN - Random business from the INC5000 list in json (... by steelaz on Tuesday September 27, 2011 @07:56AM (#3042857)
php -r "print_r(json_decode(file_get_contents('http://random-inc5000.herokuapp.com)));"
Re:Show HN - Random business from the INC5000 list in json (... by chrisohara on Tuesday September 27, 2011 @08:23AM (#3042924)
Re:Show HN - Random business from the INC5000 list in json (... by jasonkostempski on Tuesday September 27, 2011 @10:22AM (#3043360)
Is there jsonp support?
Re:Show HN - Random business from the INC5000 list in json (... by chrisohara on Tuesday September 27, 2011 @05:02PM (#3045214)
Looks like someone added it in a pull request: http://random-inc5000.herokuapp.com/?callback=foo