This is my array in jquery , which contains duplicate objects/elements :
[{
    "name": "hello",
    "label": "world"
}, {
    "name": "abc",
    "label": "xyz"
}, {
    "name": "hello",
    "label": "world"
}]
I am using the following piece of code to remove duplicate elements but it not working the duplicate elements are not removed.
var result = [];
$.each(subservices, function (i, e) {
    if ($.inArray(e, result) == -1)
        result.push(e);
});
alert(JSON.stringify(result));
 
     
     
     
    