import json
data = json.loads("{'name': 'Alice'}")
Error:
json.decoder.JSONDecodeError: Expecting property name enclosed in
double quotes: line 1 column 2 (char 1)

import json
data = json.loads("{'name': 'Alice'}")
Error:
json.decoder.JSONDecodeError: Expecting property name enclosed in
double quotes: line 1 column 2 (char 1)
Fix:
import json
data = json.loads('{"name": "Alice"}')
Tell us about your project and get help tailored to your problem.
Contact usEveryone can read. Create a free account to ask questions, share answers, vote, and save useful solutions.