title: JSON.stringify() and JavaScript Objects
body: <p>I'm thinking maybe I missed something in JavaScript that I'm just picking up now.</p>
  
  <p>I tried this code in Chrome console:</p>
  
  <pre><code>a = [];
  a.name = "test";
  JSON.stringify(a); 
  // which returns value []
  a = new Object();
  a.name = "test";
  JSON.stringify(a); 
  // which returns value {"name":"test"}
  </code></pre>
  
  <p>What is the difference?
  I thought new Object() was a Microsoft JScript thing? What am I missing?
  Must have missed something in a spec somewhere. Thanks. </p>