るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. bigdecimal to_r

ライブラリ

クラス

キーワード

検索結果

JSON::GeneratorError (24000.0)

JSON 形式の文字列を生成するときに発生したエラーを通知する例外です。

JSON 形式の文字列を生成するときに発生したエラーを通知する例外です。

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

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

...する場合に使用してください。

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::State#generate(obj) -> String (6116.0)

Generates a valid JSON document from object obj and returns the result. If no valid JSON document can be created this method raises a GeneratorError exception.

...Generates a valid JSON document from object obj and returns the
r
esult. If no valid JSON document can be created this method raises a
GeneratorError
exception....

JSON.#generate(object, state = nil) -> String (6106.0)

与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。

...:Infinity,
JSON::MinusInfinity を生成することもありません。

unparse は将来削除される予定です。

@param object JSON 形式の文字列に変換するオブジェクトを指定します。

@param state JSON::State または、to_hash や to_h メソッドでハッシュ...
...:space
a string that is put after, a : or , delimiter (default: '')
: :space_before
a string that is put before a : pair delimiter (default: '')
: :object_nl
a string that is put at the end of a JSON object (default: '')
: :array_nl
a string that is put at the end of a JSON array (default:...
...

@raise JSON::GeneratorError JSON::NaN, JSON::Infinity,JSON::MinusInfinity
を生成しようとした場合に発生します。

@raise JSON::CircularDatastructure 与えられたオブジェクトが循環参照を持つ場合に発生します。

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

JSON.#unparse(object, state = nil) -> String (6106.0)

与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。

...:Infinity,
JSON::MinusInfinity を生成することもありません。

unparse は将来削除される予定です。

@param object JSON 形式の文字列に変換するオブジェクトを指定します。

@param state JSON::State または、to_hash や to_h メソッドでハッシュ...
...:space
a string that is put after, a : or , delimiter (default: '')
: :space_before
a string that is put before a : pair delimiter (default: '')
: :object_nl
a string that is put at the end of a JSON object (default: '')
: :array_nl
a string that is put at the end of a JSON array (default:...
...

@raise JSON::GeneratorError JSON::NaN, JSON::Infinity,JSON::MinusInfinity
を生成しようとした場合に発生します。

@raise JSON::CircularDatastructure 与えられたオブジェクトが循環参照を持つ場合に発生します。

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

絞り込み条件を変える

JSON::UnparserError (6016.0)

Alias of JSON::GeneratorError

...Alias of JSON::GeneratorError...