Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

write json file in node js

function writeJsonFile(file, content) {
  let jsonData = JSON.stringify(content)
  fs.writeFileSync(file, jsonData)
}
 
PREVIOUS NEXT
Tagged: #write #json #file #node #js
ADD COMMENT
Topic
Name
6+5 =