Looking for a JSON parser in Ruby


#1

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


#2

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