title: Removing the object from nested json using its key and value (Java script or jQuery)
body: <p>I need to remove the one object from json data....My JSON would be like this</p>
  
  <p>This is my JSON data:   </p>
  
  <pre><code>[
      {
          "comp2": [
              {
                  "Create_SecurityGroup1_Securitygroup_name": {
                      "description": "sg"
                  }
              }
          ]
      },
      {
          "comp1": [
              {
                  "Create_Keypair1_Keypair_name": {
                      "default": "kp"
                  }
              }
          ]
      }
  ]
  </code></pre>
  
  <p>I need to remove "comp1" or "comp2" datas ...this key values are dynamic...but structure is same...
      Once i removed the key from this JSON data ...My result would like this if i remove "comp2"..</p>
  
  <pre><code>[
         {
          "comp1": [
              {
                  "Create_Keypair1_Keypair_name": {
                      "default": "kp"
                  }
              }
          ]
      }
  ]
  </code></pre>
  
  <p>Please help me to solve this issue ....</p>