js remove [] from json code example
Example 1: remove element json javascript
var skill = "javascript";
delete candidate[skill];
Example 2: remove json javascript
delete myObj.test.key1;
var skill = "javascript";
delete candidate[skill];
delete myObj.test.key1;