Forum: Ruby on Rails looking for a JSON parser in Ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bc912b37358cd1f8819ac7ba90c01212?d=identicon&s=25 Yi Tan (Guest)
on 2006-03-06 18:06
(Received via mailing list)
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
Bc912b37358cd1f8819ac7ba90c01212?d=identicon&s=25 Yi Tan (Guest)
on 2006-03-06 18:09
(Received via mailing list)
Have found one,

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

so elegant!

http://rubyforge.org/snippet/detail.php?type=snipp...
This topic is locked and can not be replied to.