title: How to parse json in javascript having dynamic key value pair?
body: <p>I want to parse a JSON string in JavaScript. The response is something like</p>
  
  <pre><code>var response = '{"1":10,"2":10}';
  </code></pre>
  
  <p>How can I get the each key and value from this json ?</p>
  
  <p>I am doing this - </p>
  
  <pre><code>var obj =  $.parseJSON(responseData);
  console.log(obj.count);
  </code></pre>
  
  <p>But i am getting <code>undefined</code> for <code>obj.count</code>.</p>