Json error problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
4th Nov 2017, 7:26 PM
Shabnam
Shabnam - avatar
4 Answers
+ 4
Correct syntax is "json.dumps()", not "json.dump()" ^^
4th Nov 2017, 8:21 PM
visph
visph - avatar
+ 2
omg! rly??? woe thank youuuu dear Visph 🍁❤🌷😍😍😍😍😍
4th Nov 2017, 8:27 PM
Shabnam
Shabnam - avatar
+ 2
It dsnt work. basedvon the book, it must be json.dump () and the code works on sololearn but not on my laptop
5th Nov 2017, 4:14 PM
Shabnam
Shabnam - avatar
+ 2
OmG!!! The problem was something funny! I had a saved file called json.py in my file! coz of that, the code didnt work. I changed the name of that file.py and now my code works!!!!
5th Nov 2017, 4:56 PM
Shabnam
Shabnam - avatar