#12861: Docs lack example of how to include a custom JSONEncoder subclass into serializers.serialize() ------------------------------------+--------------------------------------- Reporter: orokusaki | Owner: nobody Status: new | Milestone: 1.2 Component: Documentation | Version: SVN Keywords: serialize, serializers | Stage: Unreviewed Has_patch: 0 | ------------------------------------+--------------------------------------- In this section http://docs.djangoproject.com/en/dev/topics/serialization/#id2 it describes an example of where you would need a custom encoder class, but gives no example of how to add your class. My guess was using serialize(obj, cls=MyCustomClass), but this raised a "multiple values of 'cls' keyword argument" error. I ended up not needing a custom class, but it might be helpful for others to see it in use.
-- Ticket URL: <http://code.djangoproject.com/ticket/12861> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.