title: How to remove specific attribute from json object c#
body: <p>My JSON object has a pages array and elements array inside it. elements array has many objects .each objects has correct answer attribute</p>
  
  <p>I want to remove the correct answer attribute from the whole JSON.</p>
  
  <p>I tried in this way but I couldn't remove the correct answer attribute.</p>
  
  <pre><code>    var o = (Newtonsoft.Json.Linq.JObject)JsonConvert.DeserializeObject(ob.Json);
                  o.Property("pages").Remove();
  </code></pre>
  
  <pre><code>{
   "pages": [
    {
     "name": "page1",
     "elements": [
      {
       "type": "radiogroup",
       "name": "question1",
       "correctAnswer": "item1",
       "choices": [
        "item1",
        "item2",
        "item3"
       ]
      },
      {
       "type": "radiogroup",
       "name": "question2",
       "correctAnswer": "item2",
       "choices": [
        "item1",
        "item2",
        "item3"
       ]
      },
     ]
  }
  ]
  }
  </code></pre>