Answers for "read write json file json"

1

write json to file python

# to write on file
# data_dict is a dictionary

import json
        
with open('data.json', 'w') as f:
	json.dump(data_dict, f)
Posted by: Guest on January-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language