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#space_before
space_before()
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_space_before(VALUE self)
{
GET_STATE(self);
return state->space_before ? rb_str_new(state->space_before, state->space_before_len) : rb_str_new2("");
}
Returns the string that is used to insert a space before the ‘:’ in JSON objects.