def render_json_to_response(context):
    result = simplejson.dumps(context, sort_keys=False, indent=4)
    return HttpResponse(result, mimetype='application/javascript')
Utility method for rendering a view's data to JSON response.
dataset/ETHPy150Open mozilla/source/source/base/utils.py/render_json_to_response