Answers for "save something as json"

3

save json to file

import json

data = {}

with open('data.txt', 'w') as outfile:
    json.dump(data, outfile)
Posted by: Guest on February-27-2020

Python Answers by Framework

Browse Popular Code Answers by Language