I hava a JSON Object in my javascript code that is like :
{"0" : "Jul 09, 2012 05:05 PM", "3" : "Jul 09, 2012 05:08 PM"}
I have decoded this JSON using
var jsonObj = eval('(' + {/literal}{$json}{literal} + ')');
I can access values using
jsonObj[i]
but this gives me an error if i access jsonObj[2] since it is not in my json.
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.