1件ヒット
[1-1件を表示]
(0.160秒)
ライブラリ
- json (1)
検索結果
-
JSON
:: State # max _ nesting=(depth) (72625.0) -
生成される 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...