python -m json.tool my_json.json 转自: http://stackoverflow.com/questions/352098/how-can-i-pretty-print-json