るりまサーチ

最速Rubyリファレンスマニュアル検索!
48件ヒット [1-48件を表示] (0.116秒)
トップページ > クエリ:t[x] > クエリ:Integer[x] > 種類:インスタンスメソッド[x] > クラス:JSON::State[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

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

This integer returns the current initial length of the buffer.

...
T
his integer returns the current initial length of the buffer....

JSON::State#depth -> Integer (6219.0)

This integer returns the current depth of data structure nesting.

...
T
his integer returns the current depth of data structure nesting....

JSON::State#depth=(depth) (6218.0)

This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.

...
T
his sets the maximum level of data structure nesting in the generated
JSON to the integer depth, max_nesting = 0 if no maximum should be
checked....

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

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

...ません。

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

json_state = JSON::State.new(max_nesting: 2)
json_state.max_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.generate([[[[[[[[[[]]]]]]]]]], json_state)
//}...