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)
{
rb_check_frozen(self);
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.