let data JSON.stringify(student) fs.writeFileSync(student-2.json, data) In the above example we are storing our JSON object student to a file named "student-2. json".Previous Post : How to use module.exports in Node.js Next Post : Writing to Files in Node.js. Write your response Post answer. Jan Vladimir Mostert. JanVladimirMostert 24 Nov 2015.As the data is lost when the machine reboots the data must not be precious as even schedulingWill storing JSONs in Redis have any performance impact? I will have to stringify and store the JSON. 0. How to post JSON via Node.js without using request? 0. Analog curl request with nodejs.1815. How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST? (Node.js) HTTP POST JSON.