Python - Structured Data Files
Find the error in this code:
import json
json_str = '{name: "John", age: 30}'
py_obj = json.loads(json_str)import json
json_str = '{name: "John", age: 30}'
py_obj = json.loads(json_str)json.loads() will raise a JSONDecodeError.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions