End of Life Ruby 3.1 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?
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_escape_slash(VALUE self)
{
GET_STATE(self);
return state->escape_slash ? Qtrue : Qfalse;
}
Alias of #escape_slash
If this boolean is true, the forward slashes will be escaped in the json output.