﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2930	Single objects are not serialized as JSON strings	stefan.freyr@…	Adrian Holovaty	"It's a bit unintuitive in my opinion that the JSON serializer only handles lists of objects.

For example, the follwing two liner will result in a !TypeError (""iteration over non-sequence):
{{{
    my_object = MyModel.objects.all()[0]
    data = serializers.serialize(""json"", my_object)
}}}
While changing the first line to:
{{{
    my_object = MyModel.objects.all()[:1]
}}}
Results in a runnable program.

Shouldn't the JSON serializer be able to serialize single instances?"	defect	closed	Core (Other)		normal	wontfix			Design decision needed	0	0	0	0	0	0
