python write json data to json file for api key code example
Example: save json file python
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)