I have a JSON object:
var retrieveSections=[{key:1, label:"James Smith"} ];
I want to push some other objects in it like this one:
retrieveSections.push({key:5, label:"Joelle Six"});
But when I tried to add another object with the same key and label, I don't want it to be added to my JSON object. So I don't want to be able to push this object again:
retrieveSections.push({key:5, label:"Joelle Six"});