End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
JSON.iconv
iconv(to, from, string)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/ext/json/lib/json/common.rb, line 653
def self.iconv(to, from, string)
string.encode(to, from)
end
Encodes string using String.encode.