I've got a JSON file containing configuration for my PS app.
This data is changed often by the script. The problem is that I am editing the variable containing the JSON data, imported using ConvertFrom-JSON
.
I want it so that the PS edits directly the JSON file, so that if a force termination happens, the JSON is up-to-date with the latest conf changes.
Let me know if I'm clear and I'll edit my question if you need more details.