るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.106秒)
トップページ > クエリ:l[x] > クエリ:Hash[x] > クエリ:to_json[x] > モジュール:JSON::Generator::GeneratorMethods::NilClass[x]

別のキーワード

  1. _builtin hash
  2. hash []
  3. dbm to_hash
  4. _builtin to_hash
  5. matrix hash

ライブラリ

検索結果

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

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

...返します。

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

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

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

nil.to_json # => "null"
//}...