Python JSON Read Write Example
Description
Python JSON read and write example for beginners.
Python JSON Read Write Example.py
import json
data={'name':'John','age':30}
with open('file.json','w') as f:
json.dump(data,f)
with open('file.json') as f:
print(json.load(f))
Comments (0)
Add CommentNo comments yet. Be the first to comment!