title: How to get a JSON value from a variable
body: <p>suppose I have <code>{"data": {"243232": {"id": "testid","name": "test" } }}</code></p>
  
  <p>so when I do </p>
  
  <p><code>var  a = data.243232.id</code>;
   <code>alert(a);</code> // it gives me <code>testid.</code></p>
  
  <p>but when I do like </p>
  
  <pre><code>    var c = 243232; 
      var d = data.c.id;
      alert(d) //it gives as undefined.
  </code></pre>
  
  <p>so how to get correct value when i alert d in above case thanks.</p>