human
Django view returning json without using template
assistant
Here is some code to django response with JSON `data`

return HttpResponse(data, mimetype='application/json')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.