I'm trying to figure out the most efficient way to parse JSON objects and can't 
seem to think of a simple method.

The <@tokenize> tag seems to get me close but doesn't fully work.

For example,

If I have this JSON data, where there is a comma in the "name" value:

<@assign request$test_json value='{"name":"Johnson, John","street":"Oslo West 
16","phone":"555 1234567"}'>

And I then do this:

<@tokenize value=<@var request$test_json> CDELIM=":" RDELIM=",">

I end up with this:

{"name"

"Johnson

John"

"street"

"Oslo West 16"

"phone"

"555 1234567"}


So the comma in their name is causing trouble.

Is there some kind of best-practice way of parsing JSON data with WiTango?  
We're on version 7.0.7 currently.

Thanks
Dave Machin





----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to