python object to json file

109

python json dump to file -

import json
with open('data.json', 'w') as f:
    json.dump(data, f)

Comments

Submit
0 Comments