instance method
JSON::Ext::Generator::State#script_safe=
script_safe=(enable)
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_script_safe_set(VALUE self, VALUE enable)
{
rb_check_frozen(self);
GET_STATE(self);
state->script_safe = RTEST(enable);
return Qnil;
}
This sets whether or not the forward slashes will be escaped in the json output.