Having an array of objects like this one
"medios":[
{
"Key":"1",
"Text":"Cheque"
},
{
"Key":"2",
"Text":"Tarjeta de Crédito"
},
{
"Key":"3",
"Text":"Tarjeta de Crédito"
},
{
"Key":"4",
"Text":"Tarjeta de Crédito"
},
{
"Key":"5",
"Text":"Transferencia Bancaria"
}
]
I need to be able to delete objects that has the same "Text" value (Tarjeta de Crédito, for example), until I only keep one of them. Any idea of how to achieve that?
I tried by using a loop over the array, but don't know how to delete the specific objects