A
A
Atlanta2018-11-16 20:14:56
Backend
Atlanta, 2018-11-16 20:14:56

How to achieve minimal effort to write from the browser to the json file?

Bekend is a dark forest for me. I'm making a small html and js application for my own needs. Something like a special diary that meets exactly my requirements. But my problem is that I don't know how to make an entry in JSON. I have an object in js and I need it to be written to a file on my computer with a JSON extension. I know how to read a file with ajax, but I didn't have to write anything to it.
Please suggest a solution to my question. Preferably, the simplest one, which requires as little back-end knowledge as possible. I write the front in js, if you can’t solve the problem with native js, then at least with node.js.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-11-16
@2ord

To store the state of the client application without using the backend, it is enough to use localStorage .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question