write list of dicts to file python code example
Example: save list of dictionaries to json python
import json
with open('outputfile', 'w') as fout:
json.dump(your_list_of_dict, fout)
import json
with open('outputfile', 'w') as fout:
json.dump(your_list_of_dict, fout)