How to view a json file created in a server?

Say I dont want to use a database, and instead I want to use Node file system.

How can I view a json document created by actions on the browser?

With any database you usually have the option of viewing a live document … you can download it and all… but how can you do that using Node fs???

Application example:

Adding an object to a json file. Say how many ojects do I have on a “yes” option or “no” option??? After the end of the day/week/month I want to review the document to see results… great, how can I see it using Node fs if it isnt in my localhost?

^^ using a database this is not a problem because I can usually log into my database account and look at it…

There are JSON based DBs you can use. I can’t remember the names, but lowdb is one.

Turns out that even if the NODE file system is able to work as a database, the project website is hosted at Vercel using NEXTjs and the data might not persist on severless functions.

The idea was NOT to use 3rd party databases, and use just Node file system… but likely I am just going to use PostgeSql connected to Vercel…

Would be interesting to handle my own data and build an api, but not doing that for now.