dump json on to a file in javascipt 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');
}
);