Example 8
def json(request):
if request.is_ajax or request.GET:
# return JsonResponse({"Emp": list(queryset)})
data = [{
'id':'7788',
'name':'smith'
},
{
'id': '7788',
'name': 'smith'
}
]
return JsonResponse(data,safe=False)
This page should automatically redirect. If nothing is happening please use the continue link below.