May 142011
How to format a JSON file using command line
Answer:
JSON (JavaScript Object Notation) is a very popular data exchange format nowadays and to pretty format (i.e. easy to read) a JSON file, you can use the following method:
# cat my.json | python -mjson.tool
That's all.