[**Fiddle Demo**](http://jsfiddle.net/cse_tushar/wtXx4/)
var arr = [], //to collect id values collection = []; //collect unique object$.each(json_all, function (index, value) { if ($.inArray(value.id, arr) == -1) { //check if id value not exits than add it arr.push(value.id);//push id value in arr collection.push(value); //put object in collection to access it's all values }});console.log(collection); //you can access it values like collection[index].keyNameconsole.log(arr);

![从json数据中删除重复值[duplicate] 从json数据中删除重复值[duplicate]](http://www.mshxw.com/aiimages/31/427622.png)
