This question already has an answer here:
I have a JSON file located in my local. I need to read and write to the file with JavaScript. (not node.js) Reading the file is easy, but I have difficulty in writing into the file. Could anybody help with this please?