Answers for "deleting key of json object"

2

remove json javascript

delete myObj.test.key1;
Posted by: Guest on April-26-2020
0

deleting key of json object

let myjsonobj = {
  "employeeid": "160915848",
  "firstName": "tet",
  "lastName": "test",
  "email": "[email protected]",
  "country": "Brasil",
  "currentIndustry": "aaaaaaaaaaaaa",
  "otherIndustry": "aaaaaaaaaaaaa",
  "currentOrganization": "test",
  "salary": "1234567"
}
delete myjsonobj['otherIndustry'];
console.log(myjsonobj);
Posted by: Guest on October-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language