When using
from django.utils import simplejson
on objects of types that derive from db.Model
it throws exceptions. How to circ
json cannot be used to serialize anything more than basic types such as dicts, lists, ints/longs, and strings (this is not comprehensive). For example, even these simple commands do not work:
import json
json.dumps(object())
If you want to serialize django objects, you should refer to the django documentation on serialization, which will use their own libraries, but they do do support json.