[Python-ideas] Json object-level serializer (original) (raw)
Tarek Ziadé ziade.tarek at gmail.com
Thu Jul 29 13:56:48 CEST 2010
- Previous message: [Python-ideas] Json object-level serializer
- Next message: [Python-ideas] Json object-level serializer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Jul 29, 2010 at 1:41 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
On Thu, 29 Jul 2010 13:35:41 +0200 Tarek Ziadé <ziade.tarek at gmail.com> wrote:
Hello,
What about adding in the json package the ability for an object to provide a different object to serialize ? This would be useful to translate a class into a structure that can be passed to json.dumps How about letting json use the reduce protocol instead?
Maybe that's because I've never used it, but I find this protocol is very complex for this simple use case
Python-ideas mailing list Python-ideas at python.org http://mail.python.org/mailman/listinfo/python-ideas
-- Tarek Ziadé | http://ziade.org
- Previous message: [Python-ideas] Json object-level serializer
- Next message: [Python-ideas] Json object-level serializer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]