title: JSON change value
body: <p>I have a JSON value like this</p>
  
  <p><code>{"$id":"649271776","$type":"outdoorgame","Overs":50,"Balls":6,"TeamName":"TestTeam"}</code></p>
  
  <p>I wrote a C# code like this to change the value of Overs from 50 to 10</p>
  
  <pre><code>var jsonString = sSession.GameState; //this is the value {"$id":"649271776","$type":"outdoorgame","Overs":50,"Balls":6,"TeamName":"TestTeam"}
  dynamic jsonObject = 
  Newtonsoft.Json.JsonConvert.DeserializeObject(jsonString);
  jsonObject.Overs = 10;
  var modifiedJsonString = Newtonsoft.Json.JsonConvert.SerializeObject(jsonObject);
  </code></pre>
  
  <p>This code is changing the value of Overs from 50 to 10. The problem I am facing when I use the above code modifiedJsonString is missing these two values</p>
  
  <p><code>"$id":"649271776","$type":"outdoorgame"</code></p>
  
  <p>giving the output as <code>{Overs":10,"Balls":6,"TeamName":"TestTeam"}</code> I want <code>$id</code> and <code>$type</code> also in the modifiedJsonString.</p>
  
  <p>I want modifiedJsonString like this <code>{"$id":"649271776","$type":"outdoorgame","Overs":10,"Balls":6,"TeamName":"TestTeam"}</code></p>
  
  <p>Can anyone tell me how to solve this problem</p>