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
I wrote a tiny function for this purpose. Feel free to repurpose,
def is_json_key_present(json, key): try: buf = json[key] except KeyError: return False return True