I currently have the following code:
var myArray = []; var myElement = { id: 0, value: 0 } myElement.id = 0; myElement.value = 1; myArray[0] = myElement
Try this instead:
var myArray = []; myArray.push({ id: 0, value: 1 }); myArray.push({ id: 2, value: 3 });
or will this not work for your situation?