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.
var updatedjsono
Follow this, it can be like what you are looking:
var obj = { Objone: 'one', Objtwo: 'two' }; var key = "Objone"; delete obj[key]; console.log(obj); // prints { "objtwo": two}