8件ヒット
[1-8件を表示]
(0.207秒)
別のキーワード
種類
- モジュール (4)
- インスタンスメソッド (3)
- 特異メソッド (1)
ライブラリ
- json (8)
モジュール
キーワード
- Extend (2)
- String (2)
-
json
_ create (1) -
to
_ json (1) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1)
検索結果
先頭5件
- JSON
:: Generator :: GeneratorMethods :: String - JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash - JSON
:: Generator :: GeneratorMethods :: String :: Extend
-
JSON
:: Generator :: GeneratorMethods :: String (69001.0) -
String に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
String に JSON で使用するインスタンスメソッドを追加するためのモジュールです。 -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (63067.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (63001.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (63001.0) -
生の文字列を格納したハッシュを生成します。
生の文字列を格納したハッシュを生成します。
このメソッドは UTF-8 の文字列ではなく生の文字列を 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/malformed (JSON::... -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (9001.0) -
String に JSON で使用する特異メソッドを追加するためのモジュールです。
String に JSON で使用する特異メソッドを追加するためのモジュールです。 -
JSON
:: Generator :: GeneratorMethods :: String :: Extend . json _ create(hash) -> String (9001.0) -
JSON のオブジェクトから Ruby の文字列を生成して返します。
JSON のオブジェクトから Ruby の文字列を生成して返します。
@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。
require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "ABC" -
JSON
:: Ext :: Generator :: GeneratorMethods :: String (49.0) -
Alias of JSON::Generator::GeneratorMethods::String
Alias of JSON::Generator::GeneratorMethods::String -
JSON
:: Ext :: Generator :: GeneratorMethods :: String :: Extend (49.0) -
Alias of JSON::Generator::GeneratorMethods::String::Extend
Alias of JSON::Generator::GeneratorMethods::String::Extend