Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python object to json file

data = {
  "your json": "has data!"
}

with open('data.txt', 'w') as outfile:
    json.dump(data, outfile)
 
PREVIOUS NEXT
Tagged: #python #object #json #file
ADD COMMENT
Topic
Name
7+5 =