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