dmontgom
asked on
Newbie to JSON use from javascript - JSON iteration and getting values
Hello,
I am new to JSON and I am using the prototype library by the way.
the data that a recieve from my ajax query looks like this
{'0':'string1','1':'string 2'}
I will not know any of the elements at query time but what I do need to do is find out the number of elements and to be able to iterate throught them to get all of the values.
How do I do that using JSON notation.
Thanks,
David
I am new to JSON and I am using the prototype library by the way.
the data that a recieve from my ajax query looks like this
{'0':'string1','1':'string
I will not know any of the elements at query time but what I do need to do is find out the number of elements and to be able to iterate throught them to get all of the values.
How do I do that using JSON notation.
Thanks,
David
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER