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

David Bovill david at openpartnership.net
Thu Jan 5 15:43:48 EST 2006


Not too good in ruby - but all the work here is done in the regular  
expression no? Then use the same cheat to string a couple of rev  
lines together?

On 6 Jan 2006, at 20:37, Mark Wieder wrote:

> <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>




More information about the use-livecode mailing list