I have a json array
var states = { "1": "California", "2": "LA" };
How can i count and print the items in states. It should print 2.
if I use states.length it gives an error
I have a json array
var states = { "1": "California", "2": "LA" };
How can i count and print the items in states. It should print 2.
if I use states.length it gives an error