Given I have this Json:
{
"REGIÃO": "BH CENTRO NORTE HPF",
"TIPO DE VERBA": "VISIBILIDADE",
"VALOR PLANEJADO": "R$1,452.00",
"VALOR APURADO": "R$0.00",
"SALDO FINAL": "R$1,452.00"
},
{
"REGIÃO": "BH KEY ACCOUNT HPF",
"TIPO DE VERBA": "OFERTA FÍSICA",
"VALOR PLANEJADO": "R$54.74",
"VALOR APURADO": "R$0.00",
"SALDO FINAL": "R$54.74"
},
{
"REGIÃO": "BH KEY ACCOUNT HPF",
"TIPO DE VERBA": "REBAIXA DE PREÇO OFF",
"VALOR PLANEJADO": "R$57,456.88",
"VALOR APURADO": "R$0.00",
"SALDO FINAL": "R$57,456.88"
},
{
"REGIÃO": "BH KEY ACCOUNT HPF",
"TIPO DE VERBA": "VISIBILIDADE",
"VALOR PLANEJADO": "R$563,651.25",
"VALOR APURADO": "R$0.00",
"SALDO FINAL": "R$563,651.25"
}
I would like to get a set of the values for key "REGIÃO", so for this example I would get this:
[BH CENTRO NORTE HPF, BH KEY ACCOUNT HPF]
How do I do this withoug using a foreach and pushing values to an array and then removing duplicates?
json. There's no containing array or object