るりまサーチ

最速Rubyリファレンスマニュアル検索!
312件ヒット [301-312件を表示] (0.100秒)
トップページ > クエリ:t[x] > クエリ:to_json[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

検索結果

<< < ... 2 3 4 >>

JSON.create_id=(identifier) (6112.0)

json_create メソッドで使用するクラスを決定するために使用する値をセットします。

...son_create メソッドで使用するクラスを決定するために使用する値をセットします。

@param identifier 識別子を指定します。

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

JSON.create_id # => "json_class"
puts (1..5).to_json...
...# => {"json_class":"Range","a":[1,5,false]}
JSON.create_id = "my_json_class" # => "my_json_class"
JSON.create_id # => "my_json_class"
puts (1..5).to_json # => {"my_json_class":"Range","a":[1,5,false]}
//}...
<< < ... 2 3 4 >>