るりまサーチ

最速Rubyリファレンスマニュアル検索!
9485件ヒット [1-100件を表示] (0.264秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:j[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

JSON::Generator::GeneratorMethods::String#to_json_raw_object -> Hash (21318.0)

生の文字列を格納したハッシュを生成します。

...UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。

r
equire '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::GeneratorError)...

JSON::Generator::GeneratorMethods::String#to_json_raw -> String (21300.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...

Kernel#j(*objects) -> nil (21207.0)

与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。

...トを JSON 形式の文字列で標準出力に一行で出力します。

@param objects JSON 形式で出力したいオブジェクトを指定します。

//emlist[例][ruby]{
r
equire "json"

j
([1,2,{"name" => "tanaka","age" => 19}])
# => [1,2,{"name":"tanaka","age":19}]
//}

@see Kernel.#p...

JSON::Generator::GeneratorMethods::Array#to_json(state_or_hash = nil) -> String (18300.0)

自身から生成した JSON 形式の文字列を返します。

...自身から生成した JSON 形式の文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
JSON::State のインスタンスか、
J
SON::State.new の引数と同じ Hash を...
...指定します。

//emlist[例][ruby]{
r
equire "json"

[1, 2, 3].to_json # => "[1,2,3]"
//}...

JSON::Generator::GeneratorMethods::String::Extend.json_create(hash) -> String (18300.0)

JSON のオブジェクトから Ruby の文字列を生成して返します。

...
J
SON のオブジェクトから Ruby の文字列を生成して返します。

@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。

r
equire 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A...

絞り込み条件を変える

Regexp.json_create(hash) -> Regexp (15400.0)

JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

...
J
SON のオブジェクトから Ruby のオブジェクトを生成して返します。

@param hash 適切なキーを持つハッシュを指定します。...

JSON::Generator::GeneratorMethods::String#to_json(state_or_hash = nil) -> String (15312.0)

自身から生成した JSON 形式の文字列を返します。

...から生成した JSON 形式の文字列を返します。

自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。

@param state_or_hash 生成する JSON 形式の文...
... JSON::State のインスタンスか、
J
SON::State.new の引数と同じ Hash を
指定します。

//emlist[例][ruby]{
r
equire "json"

puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_jso...
...n # => "\\"
puts "𤘩宮城".to_json(ascii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}...

JSON::Generator::GeneratorMethods::FalseClass#to_json(state_or_hash = nil) -> String (15300.0)

自身から生成した JSON 形式の文字列を返します。

...ら生成した JSON 形式の文字列を返します。

"false" という文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
JSON::State のインスタンスか、
J
SON::State.new...
...の引数と同じ Hash を
指定します。

//emlist[例][ruby]{
r
equire "json"

false.to_json # => "false"
//}...

JSON::Generator::GeneratorMethods::Float#to_json(state_or_hash = nil) -> String (15300.0)

自身から生成した JSON 形式の文字列を返します。

...自身から生成した JSON 形式の文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
JSON::State のインスタンスか、
J
SON::State.new の引数と同じ Hash を...
...指定します。

//emlist[例][ruby]{
r
equire "json"

(1.0).to_json # => "1.0"
//}...

JSON::Generator::GeneratorMethods::Hash#to_json(state_or_hash = nil) -> String (15300.0)

自身から生成した JSON 形式の文字列を返します。

...自身から生成した JSON 形式の文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
JSON::State のインスタンスか、
J
SON::State.new の引数と同じ Hash を...
...指定します。

//emlist[例][ruby]{
r
equire "json"

person = { "name" => "tanaka", "age" => 19 }
person.to_json # => "{\"name\":\"tanaka\",\"age\":19}"
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>