Hello,

I am using Ajax.Request to retrieve a JSON object from my server.

The result looks something this:

{"customers":{"342":"Mark","432":"John","522":"Mary","121":"Tom"}}

I parse the returned JSON data with " var mydata =
transport.responseText.evalJSON(true); "  to get an object.

So how can I can now loop though the object to access each key / value
pair and do something with it?
I am assuming that I don't know the keys, so I need to read out the
keys as well.

I tried using .each without any success...


Any ideas?

greg


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to