js save to json file code example
Example: js write to json file
fs.writeFile ("file.json", JSON.stringify(data), function(err) {
if (err) throw err;
console.log('complete');
}
);
fs.writeFile ("file.json", JSON.stringify(data), function(err) {
if (err) throw err;
console.log('complete');
}
);