We need to filter the records: if both are the same, then reject; if different, we need to output them
[
{
"item": 2,
"code": 23,
"modelcode": 23
},
{
"item": 2,
"code": 23,
"modelcode": 24
}
]
output should be
[
{
"item": 2,
"code": 23,
"modelcode": 24
}
]
You can check out the equality of both attributes through use of size whenever they're matched one by one, whether equal to 2 which will mean they're different( the value 1 means they're identical ).
So, you can use the following transformation :
The more straightforward case follows as an alternative :