Jeff FW schrieb:
> The serializers are for serializing querysets/models. I'm surprised
> you're not getting an error message there--are you catching all
> exceptions?
>
> What you want is in django.utils.simplejson:
>
> from django.utils.simplejson import encoder
> encoder.JSONEncoder().encode(ret)
Or this:
>>> from django.utils import simplejson
>>> simplejson.dumps(...)
But unfortunately this does not encode datetime objects.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---