Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

.replit file python



with open("sample.json", "r") as file:
   sample = json.load(file)

sample["item"] = "Value"

with open("sample.json", "w") as file:
   json.dump(sample, file)


Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #file #python
ADD COMMENT
Topic
Name
7+5 =