print(is_json('{}'))
print(is_json('{asdf}'))
print(is_json('{ "age":100}'))
print(is_json("{'age':100 }"))
print(is_json('{"age":100 }'))
print(is_json('{"age":100 }'))
print(is_json('{"foo":[5,6.8],"foo":"bar"}'))
How do I check if a string is valid JSON in Python?