End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
JSON::Ext::Generator::State#depth
depth
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_depth(VALUE self)
{
GET_STATE(self);
return LONG2FIX(state->depth);
}
This integer returns the current depth of data structure nesting.
See also
#depth=
#configure
#check_circular?
#escape_slash
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1