Skip to content

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=(depth)

This sets whether or not the forward slashes will be escaped in the json output.

See also #escape_slash #escape_slash? #depth= #generate also in 4.0 · 3.4 · 3.3 · 3.2 · 3.0