method

to_json

ruby latest stable - Class: JSON::Ext::Generator::GeneratorMethods::String
to_json(*args)
public

This string should be encoded with UTF-8 A call to this method returns a JSON string encoded with UTF16 big endian characters as u????.