tomchristie/django-rest-framework — pull request #1247 by mbox (2013-11-21 20:14:34+00:00)
Title: Fix issue #1231: JSONEncoder doesn't handle dict-like objects

Check for __getitem__ and then attempt to convert to a dict.
The check for __getitem__ is there as there's no universal way to
check if an object is a mapping type, but this is a likely proxy