turn a dictionary into a json python code example
Example: convert 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)