+ 1

Can i make use of a json file saved data through javascript and can i actually edit the json file with just JavaScript

17th Aug 2018, 10:21 AM
AUDU JOEL
AUDU JOEL - avatar
3 Réponses
+ 2
What do you mean? Do you mean parsing The JSON data Or editing JSON data with Javascript
17th Aug 2018, 10:33 AM
Femi
Femi - avatar
0
You use the term "JSON file". Normally, the word "file" is used to refer to a physical file on some device (not a string you are dealing with in your code, or a JavaScript object). The browser has no access to physical files on your machine. It cannot read or write them. Actually, the browser does not even really have the notion of a "file". Thus, you cannot just read or write some JSON file on your local machine. If you are sending JSON to and from a server, then of course, the server might be storing the JSON as a file, but more likely the server would be constructing the JSON based on some ajax request, based on data it retrieves from a database, or decoding the JSON in some ajax request, and then storing the relevant data back into its database.
17th Aug 2018, 12:53 PM
Mayur Shedage
Mayur Shedage - avatar
0
thanks
23rd Sep 2018, 6:56 PM
AUDU JOEL
AUDU JOEL - avatar