[Tutor] How to format JSON output within script
Mal Wanstall
m.wanstall at gmail.com
Tue Aug 18 05:41:47 CEST 2009
On Tue, Aug 18, 2009 at 1:02 PM, Vincent Gulinao
<vincent.gulinao at gmail.com>wrote:
> I see you could pipe your output to 'python -mjson.tool', but how do I
> achieve the same within my script?
>
> TIA.
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
There is a JSON module in Python...the examples in the docs are pretty self
explanatory:
http://docs.python.org/library/json.html
Can you give a bit of an example of what you're trying to do?
-Mal W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090818/f5c034d9/attachment.htm>
More information about the Tutor
mailing list