3 ms·
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
by code4pay 15y 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. :-)
- flashingpumpkin 15y agoSimilarly, with Python: curl -s http://random-inc5000.herokuapp.com/ | python -m simplejson.tool I've got the last bit aliased as `json` though.