title: add anonymous object to an object
body: <p>I know to add a named object to an existing JavaScript object you do this:</p>
  
  <pre><code>var json = {};
  json.a = {name:"a"};
  </code></pre>
  
  <p>But how can you add an object to an existing JavaScript object in a similar fashion without assigning it an associative name, so that it could be accessed by a <code>for()</code> statement. Sorry if I'm being a little vague, I don't know a lot about JavaScript objects.</p>
  
  <p><strong>UPDATE:</strong><br>
  I want the end result to look like this:</p>
  
  <pre><code>var json = [{name:'a'}{name:'b'}];
  </code></pre>