I believe there are some tools for converting JSON to xml. I would
check that route first, then parse xml in witango. If that is not
possible, I can see the below being parsed in regex. You would use
regex to give you subexpressions of the ITEMS level first, then the
products level, and the items. It would take a few passes.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On Dec 2, 2007, at 6:16 AM, GK wrote:
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