in python how to convert a dictionary to json file code example
Example: write dict to json python
import json
with open('result.json', 'w') as fp:
json.dump(sample, fp)
import json
with open('result.json', 'w') as fp:
json.dump(sample, fp)