convert a python object and store it in a JSON file in the local system
# convert a python object and store it in a JSON file in the local systemimport json
data ={"id":"123","name":"John Doe","occupation":"Farmer"}withopen("output_file.json","w")asfile:
json.dump(data,file)