4件ヒット
[1-4件を表示]
(0.052秒)
ライブラリ
- json (4)
キーワード
-
buffer
_ initial _ length (1) - depth (1)
- depth= (1)
-
max
_ nesting (1)
検索結果
先頭4件
-
JSON
:: State # buffer _ initial _ length -> Integer (355.0) -
This integer returns the current initial length of the buffer.
This integer returns the current initial length of the buffer. -
JSON
:: State # depth -> Integer (355.0) -
This integer returns the current depth of data structure nesting.
This integer returns the current depth of data structure nesting. -
JSON
:: State # max _ nesting -> Integer (307.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... -
JSON
:: State # depth=(depth) (52.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.
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.