BTW, you may find that you'll need to "walk" the array twice, with an inner
loop to make it an array, but I'm sure you'll figure that out...
var x = 0;
var y = 0;
for (i in objJSON) {
var subObj = objJSON;
for (j in subObj) {
array[x][y] = subObj[j];
x++;
}
y++;
}
But the idea is the same...
----- Original Message -----
From: GK
To: [email protected]
Sent: Sunday, 02 December, 2007 09:16
Subject: Witango-Talk: parsing question
Hi, would someone be able to help me parse the following json code into a
witango array.
({
"items":[
{
"productID":"1",
"itemDesc":"computer",
"cost":"10.00"
},
{
"productID":"2",
"itemDesc":"computer2",
"cost":"12.00"
}
]
})
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf