I am trying to modify an object so that it fits me with the following format:
["Antena" : "red", "Antena FM" : "red", "Antena TV" : "red", "Antena GSM" : "red", "Antena LTE" : "red", "Antena WCDMA" : "red", "Arquitectura de transmisión" : "red", "Antena" : "red"]
But the only thing I get is something like this:
["Antena: red", "Antena FM: red", "Antena TV: red", "Antena GSM: red", "Antena LTE: red", "Antena WCDMA: red", "Arquitectura de transmisión: red", "Antena: red"]
The code that generates it is:
var names = filtrados.map(function(x) { return x['Nombre'] + ": red"});
How do I make it look the way I want?