Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

json dump to file

import json

data = {"key": "value"}

with open('data.json', 'w') as jsonfile:
    json.dump(data, jsonfile)
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #json #dump #file
ADD COMMENT
Topic
Name
2+1 =