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

Chris Rebert clp2 at rebertia.com
Mon Sep 12 06:44:01 CEST 2011


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



More information about the Python-list mailing list