Update values for JSON file why were the other members lost ?
Posted: Sun Oct 05, 2025 10:27 am
I have successfully added the "FastMode" member and set its value to "OK" for the settings.json file which does not exist yet.
But when the settings.json file already exists, I am in the situation:
+ if the "FastMode" member does not exist yet.
+ if the value of the "FastMode" member already exists and should be set to "OK".
I tried using:
but when saving:
the "Status": "20" member is lost.
How to update this "OK" value to the member "FastMode" ?.
But when the settings.json file already exists, I am in the situation:
+ if the "FastMode" member does not exist yet.
+ if the value of the "FastMode" member already exists and should be set to "OK".
I tried using:
Code: Select all
LoadJSON(0, "D:\settings.json"),
Code: Select all
SaveJSON(0, "D:\settings.json", #PB_JSON_PrettyPrint)
How to update this "OK" value to the member "FastMode" ?.
Code: Select all
{
"FastMode": "Not OK",
"Status": "20"
}