<human>:  Django view returning json without using template
<bot>: 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.