change values in json file

Feb 12 2020 7:32 AM
I have a myfile.json file present in the Release folder of my application. What I want to do is change the value of it, not temporarily, permanently.. That means, deleting the old entry, writing a new one and saving it.
 
Here is the format of the JSON file
 
{
"ID": 0,
"ChildID": 1,
"Text": "",
"PromptOption": "Is the connected to an AVR?!Yes$No",
"HeaderOption": "NULL",
"IsPrompt": false
},
{
"ID": 1,
"ChildID": 2,
"Text": "Disconnect and reconnect the HDMI cable.",
"PromptOption": "Did this resolve the issue?!Yes$No",
"HeaderOption": "Yes"
},
{
"ID": 2,
"ChildID": 3,
"Text": "break",
"PromptOption": "NULL",
"HeaderOption": "Yes"
},
{
"ID": 2,
"ChildID": 3,
"Text": "Try another HDMI input on the AVR",
"PromptOption": "Did this resolve the issue?!Yes$No",
"HeaderOption": "No"
},
 
based on child id i need edit the value and save the new value

Answers (2)