def default(self, o):
        raise TypeError("%r is not JSON serializable" % (o,))
Implement this method in a subclass such that it returns
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/utils/simplejson/encoder.py/JSONEncoder.default