Beispiel #1
0
 def __init__(self, obj):
     Response.__init__(self, json.dumps(obj), mimetype='text/json')
Beispiel #2
0
 def __init__(self, data, *args, **kw):
     #default = kw.get("json_encoder", None)
     #if default:
     #    del kw['json_encoder']
     Response.__init__(self, dump_json(data, cls=LazyEncoder), *args, **kw)