Horje
c# update value in a json file Code Example
c# update value in a json file
string json = File.ReadAllText("settings.json");
dynamic jsonObj = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
jsonObj["Bots"][0]["Password"] = "new password";
string output = Newtonsoft.Json.JsonConvert.SerializeObject(jsonObj, Newtonsoft.Json.Formatting.Indented);
File.WriteAllText("settings.json", output);




Csharp

Related
C# xamaring form change text on label Code Example C# xamaring form change text on label Code Example
c# listview add item Code Example c# listview add item Code Example
c# list remove by index Code Example c# list remove by index Code Example
c# check characters in string Code Example c# check characters in string Code Example
for loop Stringbuilder c# Code Example for loop Stringbuilder c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8