Play How to read and update JSON files with Node.js [16 of 26]
JSON is a file format particularly useful for storing data in Node.js applications. Learn how to read and modify JSON files while taking care of potential failures.
Full "Intro to Node.js" course on Microsoft Learn: https://aka.ms/LearnNode.js
Watch the entire series: https://aka.ms/NodeBeginnerSeries
- Demo source code: https://github.com/MicrosoftDocs/node-essentials
- fs API: https://nodejs.org/api/fs.html
- Node.js: https://nodejs.org
- Visual Studio Code: https://code.visualstudio.com