Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js write to json file

fs.writeFile ("file.json", JSON.stringify(data), function(err) {
    if (err) throw err;
    console.log('complete');
    }
);
 
PREVIOUS NEXT
Tagged: #js #write #json #file
ADD COMMENT
Topic
Name
5+8 =