Date: Tue, 10 Sep 2013 15:39:44 +0530 > From: Vineet Naik <naik...@gmail.com> > To: Bangalore Python Users Group - India <bangpypers@python.org> > Message-ID: > <CADmbCiP8Dq7BroEWovreG2AfB= > g1u3z80zgnt6cg3lenrsb...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Command line json formatter > $ echo '{"name": "Bangpypers", "location": "Bangalore"}' | python -m > json.tool > > Just to add, this works great in Vim too :)
Just use :%!python -m json.tool to get formatted JSON output -- Navin Pai http://lifeofnav.in _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers