Lets say result = {'a': 1, 'b': 2, 'c': 3}
Is there a difference between these two:
return HttpResponse(json.dumps(a))
and
return JsonResponse(a)
As doc states, main difference is
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With