What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-20 21:25:14
how to avoid json decode problem in python
incorrect_json = '{ name":"John "age":30 "car:"None" }' try: a_json = json.loads(incorrect_json) print(a_json) except json.decoder.JSONDecodeError: print("String could not be converted to JSON") Add solution
Best helpers
Ranking is empty