I'm getting this response
[
{
"Id": 51,
"RandomId": "4545443434-aa",
"Name": "James Smith",
},
{
"Id": 21,
"RandomId": "4545456666-aa",
"Name": "James Smith",
},
{
"Id": 31,
"RandomId": "4543443434-aa",
"Name": "Robert",
},
{
"Id": 41,
"RandomId": "2535443434-aa",
"Name": "Lawrence",
},
{
"Id": 71,
"RandomId": "4534443434-aa",
"Name": "Mathew",
},
{
"Id": 21,
"RandomId": "4543453434-aa",
"Name": "Robert,Lawrence,Mathew",
},
{
"Id": 78,
"RandomId": "4545343434-aa",
"Name": "Robert,Lawrence,Mathew",
},
{
"Id": 34,
"RandomId": "1545443434-aa",
"Name": "Mathew",
},
{
"Id": 12,
"RandomId": "4545443437-aa",
"Name": "Lawrence",
},
{
"Id": 11,
"RandomId": "4535443434-aa",
"Name": "Robert",
}
]
I want to filter this response so that there are no repeated names, eg. It should pick first James Smith
and don't include other with the same name, Same with Robert,Lawrence,Mathew
it should include first record and other records with the same name should not be included.