Snippet: Python JSON Read Write Example Language: PYTHON Author: sujeetkumar713 Created: 2026-02-14 22:31:04 Views: 726 Downloads: 125 Description: Python JSON read and write example for beginners. ============================================================ 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)) ============================================================ Downloaded from SaveMyCode - https://savemycode.com