[Script]
{
"id": "3a4a446a-efa3-e511-80f5-00155d10662b",//should specify different id value for eachNode
"name": "Test (Beispiel)",
"expanded": true,
"pid": "1659b326-dd65-5d95-a131-1aa8a643ede1",
}, |
[Scripts]
var ids = [];
var collection = [];
$.each(invalidDataSource, function(index, value) {
if($.inArray(value.id, ids) == -1) //check if id value not exits in other objects than add it
{
ids.push(value.id);
collection.push(value);
}
}); |