How do I check if a string is valid JSON in Python?,print(json.dumps(foo))