With python >= 2.6 you can do the following:
For Mac/Linux users:
cat ugly.json | python -m json.tool > pretty.json
For Windows users (thanks to the comment from dnk.nitro):
type ugly.json | python -m json.tool > pretty.json
With python >= 2.6 you can do the following:
For Mac/Linux users:
cat ugly.json | python -m json.tool > pretty.json
For Windows users (thanks to the comment from dnk.nitro):
type ugly.json | python -m json.tool > pretty.json