Webservices XML and how to do it better (was XML doesn't WORK !)

Mark Wieder mwieder at ahsoftware.net
Fri Jan 6 14:37:03 EST 2006


Ken-

Friday, January 6, 2006, 7:11:24 AM, you wrote:

>> Any chance of writing a JSON parser - should be super simple after
>> all the hard work with XML :)

> True - looks pretty easy!

<g> It'll be hard to beat the one-line Ruby parser:

<code type="ruby">
null=nil; jsonobj = eval(json.gsub(/(["'])\s*:\s*(['"0-9tfn\[{])/){"#{$1}=>#{$2}"})
</code>

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list