cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using Node.JS, how do I read a JSON file into (server) memory

jennifersky18
Member
0 Likes
469

I'm currently engaged in some Node.js experimentation and need to efficiently load a JSON object into memory for quick access. I'm considering whether to read this JSON object from either a text file or a .js file. While I'm aware of tools like Mongo and Alfred, my current requirements do not call for their use.

What is the method to read a JSON object from either a text file or a .js file and load it into the server's memory using JavaScript/Node.js?"

Accepted Solutions (0)

Answers (0)