json result returns error
<p>I have a json array</p>

<p>var states = { "1": "California", "2": "LA" };</p>

<p>How can i count and print the items in states. It should print 2. </p>

<p>if I use states.length it gives an error</p>
