i'm trying to process data from a query. So I create a JSON object and populate it using a loop, like so:
var processedData = [{
label: "teste",
value: 123
}, {
label: "teste2",
value: 321
}];
if (dataParse.response) {
dataParse = dataParse.response;
for (var aux of dataParse) {
js...