るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.150秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:n[x] > モジュール:JSON::Generator::GeneratorMethods::NilClass[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n
  5. openssl n=

ライブラリ

検索結果

JSON::Generator::GeneratorMethods::NilClass#to_json(state_or_hash = nil) -> String (6102.0)

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

...成した JSON 形式の文字列を返します。

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

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数...
...と同じ Hash を
指定します。

//emlist[例][ruby]{
require "json"

n
il.to_json # => "null"
//}...