title: 2D JSON String Array Deserialized into JavaScript objects
body: <p>Hi I have a JSON string that looks like this:</p>
  
  <pre><code>{"2000":["1", "2", "3"],"2001":["1", "2", "3"],"2002":["1", "2", "3"]}
  </code></pre>
  
  <p>The string above comes from the "backend" and my JavaScript function receives the JSON string as a parameter, which is called backendData.</p>
  
  <p>Looping through the parameter as below, gives the following result.</p>
  
  <pre><code>for (key in backendData) {
      alert(key);
  }
  </code></pre>
  
  <p>Three alertboxes with the values: 2000, 2001 and 2002.</p>
  
  <p>The problem is that I can't figure out how to access the string array for each of the "parent" elements. Using syntax <code>key[0]</code> etc. gives me the character at index 0 in the string which in all three cases are "2".</p>
  
  <p>Help needed.</p>
  
  <p>/Michael</p>