I\'m trying to convert a server side Ajax response script into a Django HttpResponse, but apparently it\'s not working.
This is the server-side script:
Since Django 1.7 you have a standard JsonResponse that's exactly what you need:
from django.http import JsonResponse ... return JsonResponse(array_to_js, safe=False)
You don't even need to json.dump your array.