Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > jsonライブラリ > JSON::Generator::GeneratorMethods::NilClassモジュール > to_json

instance method JSON::Generator::GeneratorMethods::NilClass#to_json

to_json -> String[permalink][rdoc]

自身から生成した JSON 形式の文字列を返します。

"null" という文字列を返します。