Expecting property name enclosed in double quotes: line 2 column 5 (char 6)

with open(‘data.json’, ‘r’) as f:
d= json.load(f)

Error Decsription:

Expecting property name enclosed in double quotes: line 2 column 5 (char 6)

Hello @merajzafir, pls check out your json file. May be it has some issues.

content of json file

{ ‘name’ : ‘meraj’, ‘marks’ : 90, ‘subjects’ : [‘eng’,‘maths’] }

please run and let me know the solution

{ “name” : “meraj”, “marks” : 90, “subjects” : [“eng”,“maths”] }

change the format of data.json. It will work.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.