Exemple #1
0
def json_response_from(response):
  jsonSerializer = JSONSerializer()
  return HttpResponse(jsonSerializer.serialize(response, use_natural_keys=True), mimetype='application/json')
Exemple #2
0
def json_response_from(response):
    jsonSerializer = JSONSerializer()
    return HttpResponse(jsonSerializer.serialize(response,
                                                 use_natural_keys=True),
                        mimetype='application/json')
Exemple #3
0
def json(data):
  jsonSerializer = JSONSerializer()
  return jsonSerializer.serialize(data)
Exemple #4
0
def json(data):
    jsonSerializer = JSONSerializer()
    return jsonSerializer.serialize(data)