示例#1
0
文件: helper.py 项目: jay123/server
def json_response_from(response):
  jsonSerializer = JSONSerializer()
  return HttpResponse(jsonSerializer.serialize(response, use_natural_keys=True), mimetype='application/json')
示例#2
0
def json_response_from(response):
    jsonSerializer = JSONSerializer()
    return HttpResponse(jsonSerializer.serialize(response,
                                                 use_natural_keys=True),
                        mimetype='application/json')
示例#3
0
文件: helper.py 项目: jay123/server
def json(data):
  jsonSerializer = JSONSerializer()
  return jsonSerializer.serialize(data)
示例#4
0
def json(data):
    jsonSerializer = JSONSerializer()
    return jsonSerializer.serialize(data)