instance method JSON::State#depth=

depth=(depth)[permalink][rdoc][edit]

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.