Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to work with json.dump in python

import json

# the json file where the output must be stored
out_file = open("myfile.json", "w")
  
json.dump(data, out_file)
  
out_file.close()
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #work #python
ADD COMMENT
Topic
Name
9+9 =