I have an json data like this
{
"name":"John",
"age":30,
"cars":"BMW"
},
{
"name":"Micheal",
"age":30,
"cars":"Ford"
},
{
"name":"Andy",
"age":29,
"cars":"Ford"
}
I just want to get the unique value of cars in an array like this
cars = ["BMW, Ford"];