I have such a list from my web service. I want to eliminate duplication of username:
Mylist = [{ "username": "Plr1", "is_online": true, "email": null, "message": null, "direction": 1, "image_url": "" }, { "username": "plr2", "is_online": false, "email": "", "message": null, "direction": 1, "image_url": "" }, { "username": "plr1", "is_online": false, "email": "", "message": null, "direction": 1, "image_url": null }];
Is there a function that allows me to remove duplicate values (one of the elements = Plr1)?
source share