What do you guys think about adding a method "to_json"

Adam Jorgensen adam.jorgensen.za at gmail.com
Mon Sep 12 07:39:52 CEST 2011


Perhaps an actual use-case would clarify the need for this?

2011/9/12 Chris Rebert <clp2 at rebertia.com>

> 2011/9/11 Juan Pablo Romero Méndez <jpablo.romero at gmail.com>:
> > Hello,
> >
> > What do you guys think about adding a method "to_json" to dictionaries
> > and sequence types? Perhaps through a module import?
>
> Why? We already have json.dumps(); seems to cover the use case.
>
> Cheers,
> Chris
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110912/9c7d7a5a/attachment.html>


More information about the Python-list mailing list