Skip to content
instance method

JSON::Ext::Generator::State#depth=

depth=(depth)

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.

See also #depth #escape_slash #configure #escape_slash= also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0