python object to json file

100

python json dump to file -

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

Comments

Submit
0 Comments