72件ヒット
[1-72件を表示]
(0.092秒)
種類
- インスタンスメソッド (24)
- クラス (24)
- モジュール関数 (24)
ライブラリ
- json (72)
クラス
-
JSON
:: State (12)
モジュール
キーワード
- UnparserError (12)
- generate (24)
-
to
_ json _ raw _ object (12) - unparse (12)
検索結果
先頭5件
-
JSON
:: GeneratorError (24000.0) -
JSON 形式の文字列を生成するときに発生したエラーを通知する例外です。
JSON 形式の文字列を生成するときに発生したエラーを通知する例外です。 -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (12106.0) -
生の文字列を格納したハッシュを生成します。
...する場合に使用してください。
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::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
result. 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]{
require "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]{
require "json"... -
JSON
:: UnparserError (6016.0) -
Alias of JSON::GeneratorError
...Alias of JSON::GeneratorError...