Document serialization

299 views
Skip to first unread message

Phil Plante

unread,
Jan 24, 2010, 4:22:49 PM1/24/10
to MongoEngine Developers
I messaged Harry on GitHub yesterday with a patch I had created for my
own serialization needs, so I am moving this discussion to the group
in hopes of a solution being finalized soon.

Check out my gist here: http://gist.github.com/285017

I wrote this as a crude method for JSON serialization in my app. I
didn't fork the repo because I figured there were already plans in
works to provide this native to the document object.

What are the groups thoughts on serialization for documents and
querysets?

Harry

unread,
Jan 31, 2010, 8:51:56 AM1/31/10
to MongoEngine Developers
The best way of doing this would probably be to have a hierarchy of
serializer classes for different output types, something akin to how
Django does it (http://code.djangoproject.com/browser/django/trunk/
django/core/serializers).
Reply all
Reply to author
Forward
0 new messages