Can someone suggest how I can beautify JSON in Python or through the command line?
The only online based JSON beautifier which could do it was: http://jsonviewer.stack.h
With jsonlint (like xmllint):
aptitude install python-demjson jsonlint -f foo.json