#12845: JSON serialization of empty query set raises "cannot serialize" error. ------------------------------------+--------------------------------------- Reporter: orokusaki | Owner: nessita Status: assigned | Milestone: 1.2 Component: Serialization | Version: SVN Resolution: | Keywords: Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------+--------------------------------------- Changes (by nessita):
* owner: nobody => nessita * status: new => assigned Comment: This is working for me using SVN rev 12554, see working example: {{{ #!python In [3]: Person.objects.count() Out[3]: 0 In [4]: from django.core import serializers In [5]: serializers.serialize('json', Person.objects.all()) Out[5]: '[]' }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12845#comment:3> 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.