るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.069秒)
トップページ > クエリ:i[x] > クエリ:-[x] > クエリ:it[x] > ライブラリ:json[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

クラス

モジュール

キーワード

検索結果

JSON::MinusInfinity -> Float (24502.0)

負の無限大を表します。

負の無限大を表します。

@see Float

JSON::Infinity -> Float (18402.0)

正の無限大を表します。

正の無限大を表します。

@see Float

JSON::State#buffer_initial_length -> Integer (12402.0)

This integer returns the current initial length of the buffer.

...This integer returns the current initial length of the buffer....

JSON.#dump(object, io = nil, limit = nil) -> String | IO (402.0)

与えられたオブジェクトを JSON 形式の文字列に変換してダンプします。

...オブジェクトを JSON 形式の文字列に変換してダンプします。

与えられたオブジェクトを引数として JSON.#generate を呼び出します。


@param object ダンプするオブジェクトを指定します。

@param io IO のように write メソッドを実...
...す。

@param limit 指定した場合、limit 段以上深くリンクしたオブジェクトをダンプできません。

@raise ArgumentError オブジェクトのネストの深さが limit を越えた場合に発生します。

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

JSON
.dump({ name: "tanak...
...) # => "{\"name\":\"tanaka\",\"age\":19}"
//}

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

File.open("test.txt", "w") do |f|
JSON
.dump([[[[[[[[[[]]]]]]]]]], f, 10) # => #<File:test.txt>
JSON
.dump([[[[[[[[[[[]]]]]]]]]]], f, 10) # => exceed depth limit (ArgumentError)
end
//}

@see Marshal, Marshal.#du...