title: Stringify with multidimensional array gives empty result
body: <p>I have an array like this:</p>
  
  <pre><code>var d = new Array();
  d[0] = new Array();
  d[0]['item1'] = '123';
  d[0]['item2'] = '456';
  d[0]['item3'] = '789';
  d[1] = new Array();
  d[1]['item1'] = '123';
  d[1]['item2'] = '456';
  d[1]['item3'] = '789';
  </code></pre>
  
  <p>When using <code>console.log(JSON.stringify(d));</code> my console logs <code>"[[],[]]"</code>
  Why does <code>JSON.stringify()</code> give an empty result?</p>
  
  <p>Here's a <a href="http://jsfiddle.net/ky7CT/2/" rel="nofollow noreferrer">jsFiddle</a> showing my current situation</p>
  
  <p>I read <a href="https://stackoverflow.com/questions/5168400/issues-stringifying-a-multidimensional-array-with-json-js">this</a>. The answer is a solution, however my attribute names are variable, as you can see in the jsFiddle. Is there a way to make an attribute's name variable? Like this (doesn't work obviously):</p>
  
  <pre><code>var s = 'attrName';
  var object = {
      s: '123'
  }// The object should have an attribute named attrName
  </code></pre>