Have found one,
null=nil; jsonobj = eval(json.gsub
(/(["''])\s*:\s*([''"0-9tfn\[{])/){"#{$1}=>#{$2}"})
so elegant!
http://rubyforge.org/snippet/detail.php?type=snippet&id=29
On 3/6/06, Yi Tan <yi.tan.uk@gmail.com> wrote:>
> Hi all,
>
> I''m looking for a JSON parser in Ruby.
>
> If you have any information/document, please give me a hint.
>
> Many thanks,
>
> Yi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060306/d91f1438/attachment-0001.html