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 ? state->space_before : rb_str_freeze(rb_utf8_str_new("", 0));
}
Returns the string that is used to insert a space before the ‘:’ in JSON objects.