this is my json may be thousands of record data we request in django rest framework.
{
"a":1,
"b":2,
"c":3,
.....
}
if request.data['a'] == '':
return JsonResponse({'error':1})
elif request.data['b'] == '':
return JsonResponse({'error':1})
elif .....
.......
else:
......
I want to check data is not blank like above if... else. we can add if else condition but this is not possible to check all data from if else Please suggest me what is the best way to check this line of code in python.