{
"Category1": [
{
"Element1": "value1",
"Element2": "value2",
..
"ElementN": "valueN"
},
...,
{
"Element1": "value1",
"Element2": "value2",
..
"ElementN": "valueN"
}
],
"Category2": [
{
"Element1": "value1",
"Element2": "value2",
..
"ElementN": "valueN"
},
...,
{
"Element1": "value1",
"Element2": "value2",
..
"ElementN": "valueN"
}
],
"Category3": [
{
"Element1": "value1",
"Element2": "value2",
..
"ElementN": "valueN"
}
],
"Category4": [
{
"Element1": "value1",
"Element2": "value2",
..
"ElementN": "valueN"
}
]
}
m.RowItems = createObject("RoSGNode","ContentNode")
json = ParseJSON(list)
for each category in json
row = createObject("RoSGNode","ContentNode")
row.Title = category
for each object in json[category]
item = createObject("RoSGNode","ContentNode")
for each itemV in object
process...
end for
row.appendChild(item)
end for
m.RowItems.appendChild(row)
end for
Objects that have no intrinsic order (like AssociativeArray) are enumerated in apparent random order.
for each category in json.keys()
Help, I cannot figure out how to use the .keys method to achieve that result.
How did you end up using .keys() to sort out the problem. Please post code I am having the same issue.