Link to home
Start Free TrialLog in
Avatar of dmontgom
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':'string2'}

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
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dmontgom
dmontgom

ASKER

Way to go....thanks for the quick response.