Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > jsonライブラリ > JSON::Stateクラス > depth

instance method JSON::State#depth

depth -> Integer[permalink][rdoc]

This integer returns the current depth of data structure nesting.