I am getting the Response from the server like this
{
owners:[
{
_id:"33333"
email:[email protected]
}
{
_id:"1111"
email:[email protected]
}]
employee:[
{
_id:"44342"
email:[email protected]
}
{
_id:"35345"
email:[email protected]
}
{
_id:"3556"
email:[email protected]
}
]
users:[
{
_id:"56744"
email:[email protected]
}
{
_id:"8908"
email:[email protected]
}]
}
i want keep the objects Which are only having unique email id in all the array of objects the Result should be like this:
{
owners:[
{
_id:"33333"
email:[email protected]
}
{
_id:"1111"
email:[email protected]
}]
employee:[
{
_id:"35345"
email:[email protected]
}
{
_id:"35345"
email:[email protected]
}
]
users:[
{
_id:"56744"
email:[email protected]
}
]
}
can anybody help me on this Please.