Method: JSON::Ext::Generator::State#depth=
- Defined in:
- ext/json/ext/generator/generator.c
#depth=(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.
1249 1250 1251 1252 1253 1254 1255 |
# File 'ext/json/ext/generator/generator.c', line 1249 static VALUE cState_depth_set(VALUE self, VALUE depth) { GET_STATE(self); Check_Type(depth, T_FIXNUM); state->depth = FIX2LONG(depth); return Qnil; } |