11件ヒット
[1-11件を表示]
(0.084秒)
トップページ > :Object#class > :to_regexp > :FALSE > :receiver > :JSON::Generator::GeneratorMethods::String
ライブラリ
- json (11)
検索結果
-
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (6114.0) -
生の文字列を格納したハッシュを生成します。
...の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is illegal/malf...