django jsonresponse example Example: jsonresponse django from django.http import JsonResponse return JsonResponse({'foo':'bar'})