Reputation: 348
Does changing a JSON file with JS acutally affect the JSON file or does it only change the JSON file in temp memory?
user.properties[0].firstName = "Jane";
This is from Replacing a property value in JSON.
I am not using a server to develop my website, but will be using one when I post it.
Upvotes: 0
Views: 135
Reputation:
That would only affect the json in memory, you would then need to write the changes back to the filesystem for it to update the file contents.
Upvotes: 2