SyntaxFix
Write A Post
Hire A Developer
Questions
You have to create an object. Assign the values to the object. Then push it into the array:
var nietos = []; var obj = {}; obj["01"] = nieto.label; obj["02"] = nieto.value; nietos.push(obj);