Hacker News new | ask | show | jobs
by code4pay 5376 days ago
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. :-)

1 comments

Similarly, with Python:

  curl -s http://random-inc5000.herokuapp.com/ | python -m simplejson.tool
I've got the last bit aliased as `json` though.