How do I obtain the req in falcon as json and not string as seperate key value pairs.

If {"a:213","b":32435} How do i make sure a is passed and then obtain value of a


I hope following code will help you.

json_data = json.loads(req.stream.read())
try:
    value_a = json_data['a']
except KeyError as k:
    print 'a is not passed'