In my code i am getting values like this
keys = request.POST.get('keys')
KeysList = json.loads(keys)
values = request.POST.get('values')
valuesList = json.loads(values)
After print statement i am getting values in list like :
keys = ['A', 'B', 'C', 'D']
Values = ['true', 'false', 'true', 'true']
but what i exactly want is like i want a dictionary in this way :
updateObj = { 'A' : 'true', 'B' : 'false', 'C' : 'true', 'D' : 'true', }
how can i achieve this can any one please suggest me for this ?? i am stuck here thanks in advance