I have a bunch of JSON data from Facebook posts like the one below:
{\"from\": {\"id\": \"8\", \"name\": \"Mary Pinter\"}, \"message\": \"How ARE you?\", \"c
If all you want is to check if key exists or not
h = {'a': 1} 'b' in h # returns False
If you want to check if there is a value for key
h.get('b') # returns None
Return a default value if actual value is missing
h.get('b', 'Default value')