title: Finding Key value from JSON Object in Javascript
body: <p>I hava a JSON Object in my javascript code that is like : </p>
  
  <pre><code>{"0" : "Jul 09, 2012 05:05 PM", "3" : "Jul 09, 2012 05:08 PM"}
  </code></pre>
  
  <p>I have decoded this JSON using </p>
  
  <pre><code>var jsonObj = eval('(' + {/literal}{$json}{literal} + ')');
  </code></pre>
  
  <p>I can access values using </p>
  
  <pre><code>jsonObj[i]
  </code></pre>
  
  <p>but this gives me an error if i access jsonObj[2] since it is not in my json. </p>
  
  <p>So i wish to have a way to access first part of JSON i.e. the key part. so that i store them in an array in JS and loop through them. </p>