SyntaxFix
Write A Post
Hire A Developer
Questions
To write to a file:
import json myfile.write(json.dumps(mydict))
To read from a file:
import json mydict = json.loads(myfile.read())
myfile is the file object for the file that you stored the dict in.
myfile