Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

writing json data to file python

# Directly from dictionary
with open('json_data.json', 'w') as outfile:
    json.dump(json_string, outfile)
  
# Using a JSON string
with open('json_data.json', 'w') as outfile:
    outfile.write(json_string)
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #writing #json #data #file #python
ADD COMMENT
Topic
Name
2+4 =