title: Remove nested object in JSON with rapidjson
body: <p>I'm trying to remove object nested in object in JSON file. However, I can not find any examples on the internet or on the official rapidjson page. My code is written on C++.</p>
  
  <p>I have tried with the following code:</p>
  
  <pre><code>const Value&amp; rootObject= document["root"];
  
  const Value&amp; settingsObject = extensionsObject;
  
  settingsObject.RemoveMember();
  </code></pre>
  
  <p>But I am not sure what parameter to pass or how to initialize MemberIterator for exact element (as I already know the name of the object I want to remove).</p>
  
  <p>Here is example of the JSON structure:</p>
  
  <pre><code>{
    "root": {
      "settings": {
        "item1": {
          "someInfo": 123
        },
        "item2": {
          "someInfo": "string"
        }
      }
    }
  }
  </code></pre>