use JsonResponse instead of making a json response by hand using HttpResponse