title: how to remove json object key and value.?
body: <p>I have a json object as shown below. where i want to delete the "otherIndustry" entry and its value by using below code which doesn't worked.</p>
  
  <pre><code>var updatedjsonobj = delete myjsonobj['otherIndustry'];
  </code></pre>
  
  <p>How to remove Json object specific key and its value.
  Below is my example json object where i want to remove "otherIndustry" key and its value.</p>
  
  <pre><code>var myjsonobj =  {
        "employeeid": "160915848",
        "firstName": "tet",
        "lastName": "test",
        "email": "test@email.com",
        "country": "Brasil",
        "currentIndustry": "aaaaaaaaaaaaa",
        "otherIndustry": "aaaaaaaaaaaaa",
        "currentOrganization": "test",
        "salary": "1234567"
      };
  delete myjsonobj ['otherIndustry'];
  console.log(myjsonobj);
  </code></pre>
  
  <p>where the log still prints the same object without removing 'otherIndustry' entry from the object.</p>