End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
JSON::Ext::Generator::State#escape_slash=
escape_slash=(depth)
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_escape_slash_set(VALUE self, VALUE enable)
{
GET_STATE(self);
state->escape_slash = RTEST(enable);
return Qnil;
}
This sets whether or not the forward slashes will be escaped in the json output.