title: Remove nested key from a json object using java
body: <p>I have the following json structure </p>
  
  <pre><code>{  
     "MerchHierarchyEBM":{  
        "DataArea":{  
           "Division":{  
              "UpdatedBy":"SN",
              "Group":{  
                 "GroupName":"Womens Fashion*",
                 "UpdatedBy":"Data Migration",
                 "UpdatedOn":"22-NOV-17",
                 "GroupID":"200"
              },
              "DivisionName":"Fashion",
              "UpdatedOn":"22-NOV-17",
              "DivisionID":"2000"
           }
        }
     }
  }
  </code></pre>
  
  <p>and i want to remove the <code>"Group"</code> key and value from the json object using java
  i tried few things but didn't work following is my code .</p>
  
  <pre><code>JSONObject jsonObjIncomingDatanew =new JSONObject(Result);
  jsonObjIncomingDatanew.remove("MerchHierarchyEBM.DataArea.Division.Group");
  </code></pre>