title: How do I access a JSON object using a javascript variable
body: <p>What I mean by that is say I have JSON data as such:</p>
  
  <pre><code>[{"ADAM":{"TEST":1}, "BOBBY":{"TEST":2}}]
  </code></pre>
  
  <p>and I want to do something like this:</p>
  
  <pre><code>var x = "ADAM";
  alert(data.x.TEST);
  </code></pre>