JSON to Array (or how to know number of json objects)
HI, I am writing this code
- <script type="text/javascript">
- $(document).ready(function() {
- var obj = jQuery.parseJSON('{"a":"sss","b":"sss","question":"whi?"}');
- //alert(obj.question);
-
- });
- </script>
how could i know how many objects variable obj has?