Unable to update JToken value : <p>I'm trying to update the value of JToken but its reference is not getting updated. </p>

<p>JSON string:</p>

<pre><code>    {
  "Title": "master",
  "Presentation": [
    {      
      "Component": {
        "Content": {
          "Title": "Set New Title",
        }
      }
    }
  ]
}
</code></pre>

<p>and the usage is given below</p>

<pre><code>JObject jo = JObject.Parse(File.ReadAllText(file.json));
foreach (var token in jo.SelectTokens("$..Component.Content").Children())
            {
                JProperty prop = token.ToObject&lt;JProperty&gt;();
                prop.Value = "New Title";
            }
string jsonText = JsonConvert.SerializeObject(jo, Formatting.Indented);
</code></pre>

<p>In this example, I'm trying to update the value of Title property. It is getting updated within foreach, means local variable is getting updated but changes are not reflecting in main jobject.</p>

<p>Can anyone help me if i'm doing anything wrong?</p>
