Use Python to format JSON

Easier way to format JSON instead of JSONLINT

With Python 2.6+ you can just do:
echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool

Leave a Reply