simplejson/simplejson — pull request #53 by chason (2013-01-25 21:44:48+00:00)
Title: Encode custom objects with __json__

Encoding custom objects in an agonstic manner is difficult right now,
since there's no way to ensure that a custom encoder will be used. This
patch lets custom objects use a __json__ method to output an appropriate
value.