Hi,
The following is part of a JSON string returned from the server:
{
col1: {
caption: 'Workspace',
combodata: {
c_0: {
id: 0,
value: 'Filter...'
},
c_1: {
id: 1,
value: 'Tax'
},
c_2: {
id: 2,
value: 'HR'
}
}
}
}
After eval, I can access .caption
, and .combodata
is visible in Firebug as an object, with c_0 and c_1 visible as objects inside .combodata
, with id and value in both c_0 and c_1.
How do I step through each object in .combodata
? I tried .combodata.each(c)
, but that throws an exception. I won't know the names of the objects in .combodata
during run time.