るりまサーチ

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

別のキーワード

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

検索結果

<< 1 2 3 ... > >>

JSON::MinusInfinity -> Float (36602.0)

負の無限大を表します。

負の無限大を表します。

@see Float

JSON::Infinity -> Float (24402.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::State#indent -> String (12402.0)

インデントに使用する文字列を返します。

...インデントに使用する文字列を返します。

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

json
_state = JSON::State.new(indent: "\t")
json
_state.indent # => "\t"
JSON
.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
//}...

JSON::State#indent=(string) (12402.0)

インデントに使用する文字列をセットします。

...ing インデントに使用する文字列を指定します。

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

json
_state = JSON::State.new(indent: "\t")
json
_state.indent # => "\t"
JSON
.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json
_state.in...
...dent = " "
JSON
.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}...

絞り込み条件を変える

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

生成される JSON 形式の文字列のネストの深さの最大値を返します。

... JSON 形式の文字列のネストの深さの最大値を返します。

この値がゼロである場合は、ネストの深さのチェックを行いません。

//emlist[例 ネストの深さチェックを行う][ruby]{
require "json"

json
_state = JSON::State.new(max_nesting: 2)
json
_s...
..._nesting # => 2
JSON
.generate([[]], json_state)
JSON
.generate([[[]]], json_state) # => JSON::NestingError
//}

//emlist[例 ネストの深さチェックを行わない][ruby]{
require "json"

json
_state = JSON::State.new(max_nesting: 0)
json
_state.max_nesting # => 0
JSON
.gene...
...rate([[[[[[[[[[]]]]]]]]]], json_state)
//}...

JSON::State#buffer_initial_length=(length) (12202.0)

This sets the initial length of the buffer to length, if length > 0, otherwise its value isn't changed.

...This sets the initial length of the buffer to length, if length > 0,
otherwise its value isn't changed....

JSON::State#max_nesting=(depth) (12202.0)

生成される JSON 形式の文字列のネストの深さの最大値をセットします。

...れる JSON 形式の文字列のネストの深さの最大値をセットします。

この値にゼロをセットすると、ネストの深さのチェックを行いません。

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

json
_state = JSON::State.new(max_nesting: 2)
json
_state.max_nesting...
...# => 2
JSON
.generate([[]], json_state)
json
_state.max_nesting = 3
json
_state.max_nesting # => 3
JSON
.generate([[[[]]]], json_state) # => JSON::NestingError
//}...

JSON::VARIANT_BINARY -> bool (12202.0)

拡張ライブラリ版を使用している場合に真を返します。 そうでない場合は偽を返します。

拡張ライブラリ版を使用している場合に真を返します。
そうでない場合は偽を返します。

JSON::Ext::Generator::GeneratorMethods::Integer (12002.0)

Alias of JSON::Generator::GeneratorMethods::Integer

...Alias of JSON::Generator::GeneratorMethods::Integer...

絞り込み条件を変える

<< 1 2 3 ... > >>