how to dump data in json file using python code example
Example 1: save json file python
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)
Example 2: python json dump
import json
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)