Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
JSON::Ext::Generator::State#space_before=
space_before=(space_before)
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_space_before_set(VALUE self, VALUE space_before)
{
GET_STATE(self);
RB_OBJ_WRITE(self, &state->space_before, string_config(space_before));
return Qnil;
}
Sets the string that is used to insert a space before the ‘:’ in JSON objects.