るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.033秒)
トップページ > バージョン:2.6.0[x] > クエリ:to_json[x] > 種類:ライブラリ[x]

別のキーワード

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

検索結果

json/add/core (40.0)

Ruby のコアクラスに JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。

Ruby のコアクラスに JSON 形式の文字列に変換するメソッドや
JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。

json/add/core サブライブラリを require すると、例えば Range オブ
ジェクトを JSON 形式の文字列にしたり、Range オブジェクトに戻す事
ができます。

//emlist[例][ruby]{
require 'json/add/core'
(1..10).to_json # => "{\"json_class\":\"Range\",\"a\":[1,10,false]}"
JSO...