depth=(p1)
public
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.
static VALUE cState_depth_set(VALUE self, VALUE depth)
{
GET_STATE(self);
Check_Type(depth, T_FIXNUM);
state->depth = FIX2LONG(depth);
return Qnil;
}