You can also use the python json.tool
$ echo '{"json":"obj"}' | python -mjson.tool
{
"json": "obj"
}
http://docs.python.org/library/json.html