fs.writeFile('./myFile.json', JSON.stringify(updatedJSON), (err) => { if (err) console.log('Error writing file:', err); }) })
const updatedJSON = { "name":"arif updated", "surname":"shariati updated" }