My collection of objects includes the following inputs:
var jsonArray1 = [{id:'1',name:'John'},{id:'2',name:'Smith'},{id:'3',name:'Adam'},{id:'1',name:'John'}]
There is a duplicate id '1' that I would like to eliminate from my output. The desired result should be:
[{id:'2',name:'Smith'},{id:'3',name:'Adam'}]
I am seeking guidance on how to remove all duplicate records from the array. Can you provide me with direction on this?