Method: JSON::Ext::Generator::State#max_nesting=
- Defined in:
- ext/json/ext/generator/generator.c
#max_nesting=(depth) ⇒ Object
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.
1178 1179 1180 1181 1182 1183 |
# File 'ext/json/ext/generator/generator.c', line 1178 static VALUE cState_max_nesting_set(VALUE self, VALUE depth) { GET_STATE(self); Check_Type(depth, T_FIXNUM); return state->max_nesting = FIX2LONG(depth); } |