convert list to json python and save to file code example
Example: python save list to json
import json
with open('data.json', 'w') as f:
json.dump(data, f)
import json
with open('data.json', 'w') as f:
json.dump(data, f)