prettify JSON
To pretty print JSON output you can use the command line...
so any cURL request returning JSON can be piped to python:
curl http://somesite.com/cont/res/ | python -m json.tool
or
cat somefile.json / python -m json.tool
so any cURL request returning JSON can be piped to python:
curl http://somesite.com/cont/res/ | python -m json.tool
or
cat somefile.json / python -m json.tool
NB it won't display in the order it appears in the file...
ReplyDelete