dynamic dyn = Newtonsoft.Json.JsonConvert.DeserializeObject(json); foreach (var obj in dyn) { if (obj.Name == "id") { obj.Value = dbGuid; break; } } string result = Newtonsoft.Json.JsonConvert.SerializeObject(dyn);
2022-02-17 12:07:30
dynamic dyn = Newtonsoft.Json.JsonConvert.DeserializeObject(json); foreach (var obj in dyn) { if (obj.Name == "id") { obj.Value = dbGuid; break; } } string result = Newtonsoft.Json.JsonConvert.SerializeObject(dyn);