to_json_raw_object -> HashRuby 1.9.1 から Ruby 4.1 で削除[permalink][rdoc][edit] [added by json/add/string]-
生の文字列を格納したハッシュを生成します。
このメソッドは UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。
例require 'json/add/string' p "にほんご".encode("euc-jp").to_json_raw_object # => {"json_class" => "String", "raw" => [164, 203, 164, 219, 164, 243, 164, 180]}