Can anyone enlighten me on how to retrieve nested structures via
loadJSONDoc? iter syntax is  confusing me.

I've used loadJSONDoc to return a structure containing a nested
dictionary like so,  where each value is a dictionary in turn.

e.g. {"items": {"record1": {"name": "A", "type": "B"}, "record2":
{"name": "C", "type":"D"} }

I can access any part of the struct

e.g. if the structure is in r, as r.items['record2']['name']

BUT I can't work out how to iterate over the whole thing.

I'd like to cycle through record1 to recordX given the above.

Thanks in advance,

 .M.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to