Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Set#to_json

to_json(*args)

return the JSON value

See also #to_a #to_s #superset? #to_set also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1