SyntaxFix
Write A Post
Hire A Developer
Questions
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