Adding to Objects/Arrays
<p>Im storing data in an object (because I want to convert it to json later).</p>

<pre><code>var myObject = new Object();

myObject.name = "John";
myObject.name = "James";
</code></pre>

<p>I'm not too sure how this works because I want to sort of treat it like an array, being able to loop through and output each name</p>

<pre><code>myObject[i]['name'];
</code></pre>

<p>Where am I going wrong?</p>
