I have a multi dimentional array as following. I need to delete the previous row if the value of the particular key value duplicates
[
{"id":5, "name":"abc"}
{"id":5, "name":"abcd"}
{"id":6, "name":"abcde"}
]
I need to get the result as following after deleting the previous row if the value of id already exists.
[
{"id":5, "name":"abcd"}
{"id":6, "name":"abcde"}
]