title: update json object in c#
body: <p>I have a json object something like</p>
  <pre><code>{ &quot;name&quot; : &quot;sai&quot;, &quot;age&quot; : 22, &quot;salary&quot; : 25000}
  </code></pre>
  <p>I want to update the json object by</p>
  <pre><code>{ &quot;name&quot; : &quot;sai&quot;, &quot;age&quot; : 23, &quot;Gender&quot; : &quot;male&quot;}
  </code></pre>
  <p>Then I want result something like</p>
  <pre><code>{ &quot;name&quot; : &quot;sai&quot;, &quot;age&quot; : 23, &quot;salary&quot; : 25000, &quot;Gender&quot; : &quot;male&quot;}
  </code></pre>
  <p>I tried something like</p>
  <pre><code>foreach (var item in actualJson)
  {
      bool isFound = false;
      foreach (var newItem in newJson)
      {
          if(item == newItem)  // always returns false, anything wrong with this?
          {
              isFound = true;
              break;
          }
      }
  
      if(!isFound)
      {
          // add to json
      }
  }
  </code></pre>
  <p>I am not getting any Idea to solve this?</p>
  <p>Any help/guidance would be greatly appreciated.</p>