るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer chr

ライブラリ

検索結果

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

生成される 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_nes...