[BangPypers] Favorite tips/techniques
Navin Pai
lifeofnavin at gmail.com
Tue Sep 10 12:36:05 CEST 2013
Date: Tue, 10 Sep 2013 15:39:44 +0530
> From: Vineet Naik <naikvin at gmail.com>
> To: Bangalore Python Users Group - India <bangpypers at python.org>
> Message-ID:
> <CADmbCiP8Dq7BroEWovreG2AfB=
> G1u3Z80zGnT6Cg3LEnRSbZ7A at 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
More information about the BangPypers
mailing list