﻿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
3564	flexible JSON serializing mechanism	boxed@…	Jacob	"JSON serialization is rather awkward in django, since you either have to extract all the data in the view code och make your own JSON encoder. I suggest adding a new class DjangoJSONEncoder (which extends DateTimeAwareJSONEncoder) that will do essentially this:

def default(self, o):
        try:
            return o.json_serialize()
        except AttributeError:
            return super(self, DateTimeAwareJSONEncoder).default(o)

This way I can put the JSON serialization where it belongs: with my models."		closed	Core (Serialization)	dev		wontfix			Accepted	0	0	0	0	0	0
