simplejson
simplejson is a simple, fast, extensible JSON encoder/decoder
... Python 2.5 - Python 2.7 releases. The encoder can be specialized to provide serialization in any kind of situation, without any special support by the objects to be serialized (somewhat like pickle). This is best done with the default kwarg to dumps.