How to Convert Json Value of Http Post Parameter to Python Dict in Django? How to Convert Json Value of Http Post Parameter to Python Dict in Django? json json

How to Convert Json Value of Http Post Parameter to Python Dict in Django?


Try json.loads(checkin_json) instead of json.load(request.POST). Notice the extra 's'.


change checkin = json.load(request.POST) to checkin = json.loads(checkin_json)


On python, boolean values are Capitalized (first letter is uppercase): True/False.

Check this.

EDIT:Pay attentiot at this lines:

"primary": true    }],"verified": true,

Both "true" values are lowercase and need to be capitalized