34👍
✅
from django.http import JsonResponse
def someView(request):
...
return JsonResponse(someDictionary)
Source:stackexchange.com