using System.Text.Json.Nodes;
public static void Main()
string jsonString = "{\"name\":\"New York\",\"population\":10000000,\"otherProperty\":\"Some Value\"}";
var jsonObject = JsonNode.Parse(jsonString).AsObject();
jsonObject["name"] = "Updated City Name";
string modifiedJsonString = jsonObject.ToString();
Console.WriteLine(modifiedJsonString);