import json
with open (“data.json”,“r”) as file:
d=json.load(file)
print(d)
I tried but its showing
Expecting ‘:’ delimiter: line 2 column 11 (char 12).
Please help
import json
with open (“data.json”,“r”) as file:
d=json.load(file)
print(d)
I tried but its showing
Expecting ‘:’ delimiter: line 2 column 11 (char 12).
Please help
Hello @vatsal50, can you pls also show what is there inside your data.json file. May there is some error inside that file.
{ “name”=“Hari” “age”=“33” }
Comma (,) must be there in between name and age. Try that out and let me know.
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.