A
A
Alexey2014-11-12 14:35:39
JavaScript
Alexey, 2014-11-12 14:35:39

Is it possible to "update" a JSON file using JQuery?

Colleagues, good afternoon.
I have this situation:
1) The data is stored in a json file
2) I take it into a global variable as an object of objects
3) I change
it 4) Now I need to send this global variable to a function (which can write it to a json file)

But since javascript does not have access to the file system, then what to do?
How to send data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sydorenko, 2014-11-12
@azovl

Send a json file / or just your object with a POST to the server on which the service you wrote (a file, a request handler from the client) is spinning, and expects that json will be sent to it. After that, he will calmly save it where necessary, and shoot at you in response, for example, with the url of this new, corrected file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question