ds_secret
ds_secret

Reputation: 348

Change JSON File with JavaScript

Does changing a JSON file with JS acutally affect the JSON file or does it only change the JSON file in temp memory?

Code

user.properties[0].firstName = "Jane";

This is from Replacing a property value in JSON.

Edit

I am not using a server to develop my website, but will be using one when I post it.

Upvotes: 0

Views: 135

Answers (1)

user320487
user320487

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

Related Questions