fusionbox/django-fusionbox — pull request #51 by chroto (2012-10-16 14:39:35+00:00)
Title: Add fusionbox.core.serializers.FusionboxJSONEncoder

There were inconsistencies within the project with how python objects
are serialized into JSON strings.

This creates a single encoder class
`fusionbox.core.serializers.FusionboxJSONEncoder` that inherits from
`django.core.serializers.json.DjangoJSONEncoder`. During encoding, it
attempts to call a `to_json` method on the object if it exists. Then,
it falls back to `DjangoJSONEncoder` which provides ways to encode
datetime and decimal objects.