1var object = {'Name'};
2var array = [ ]; // Create empty array
3
4// SIMPLE
5 array.push(object); // ADDS OBJECT TO ARRAY (AT THE END)
6 // or
7 array.unshift(object); // ADDS OBJECT TO ARRAY (AT THE START)
8
9// ADVANCED
10 array.splice(position, 0, object);
11 // ADDS OBJECT TO THE ARRAY (AT POSITION)
12
13 // Position values: 0=1st, 1=2nd, etc.
14 // The 0 says: "remove 0 objects at position"
1var nietos = [];
2var obj = {};
3obj["01"] = nieto.label;
4obj["02"] = nieto.value;
5nietos.push(obj);
6