JSONのgemを入れればJSONとRubyオブジェクトの相互変換が可能になる。JRubyの場合はjson-x.x.x-java、普通のRuby(1.8系)の場合はjson-x.x.xのgemを入れる必要がある。尚、1.9系のRubyは標準でjsonライブラリが利用できるので、gemを入れずともrequire "json"するだけで良い。 また、JSONライブラリでなく、Active Supportを利用する方法は以下のリンクを参照していただきたい。 Active SupportによるJSONとRubyオブジェクトの相互変換 JRubyの場合はgem install json -v 1.6.5コマンドを実行することでjson-1.6.5-javaがインストールされた。 # gem install json -v 1.6.5 Successfully installed json-1.6.5