1275件ヒット
[1-100件を表示]
(0.120秒)
ライブラリ
- ビルトイン (16)
- json (864)
-
json
/ add / bigdecimal (24) -
json
/ add / complex (24) -
json
/ add / date (12) -
json
/ add / date _ time (24) -
json
/ add / exception (24) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (24) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (24) -
json
/ editor (12) - psych (12)
-
rdoc
/ generator / json _ index (48)
クラス
- BigDecimal (24)
- Complex (24)
- Date (12)
- DateTime (24)
- Exception (24)
-
JSON
:: Parser (24) -
JSON
:: State (288) - Object (16)
- OpenStruct (12)
-
RDoc
:: Generator :: JsonIndex (36) - Range (12)
- Rational (24)
- Regexp (12)
- Struct (12)
- Symbol (12)
- Time (24)
モジュール
- JSON (240)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (36) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (36)
- Psych (12)
キーワード
- CircularDatastructure (12)
- Editor (12)
- Extend (24)
- Infinity (12)
- Integer (24)
- JsonIndex (12)
- MinusInfinity (12)
- MissingUnicodeSupport (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NestingError (12)
- NilClass (24)
-
SEARCH
_ INDEX _ FILE (12) - String (24)
-
VARIANT
_ BINARY (12) - VERSION (12)
- [] (12)
-
array
_ nl (12) -
ascii
_ only? (12) -
buffer
_ initial _ length (12) -
buffer
_ initial _ length= (12) -
check
_ circular? (12) - configure (12)
-
create
_ id (12) -
create
_ id= (12) - depth (12)
- dump (12)
-
fast
_ generate (12) -
fast
_ unparse (12) -
from
_ state (12) - generate (36)
- indent (12)
- indent= (12)
- j (12)
- jj (12)
-
json
/ add / bigdecimal (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / rational (12) -
json
/ add / time (12) -
json
/ editor (12) -
json
_ create (84) - load (12)
-
load
_ file (12) -
load
_ file! (12) -
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- new (36)
-
object
_ nl (12) -
object
_ nl= (12) - parse (12)
- parse! (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
quirks
_ mode (12) -
quirks
_ mode= (12) -
quirks
_ mode? (12) -
rdoc
/ generator / json _ index (12) - restore (12)
- source (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
to
_ json (264) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) - unparse (12)
-
yield
_ self (16)
検索結果
先頭5件
-
JSON
:: MinusInfinity -> Float (39300.0) -
負の無限大を表します。
負の無限大を表します。
@see Float -
JSON
:: Infinity -> Float (33200.0) -
正の無限大を表します。
正の無限大を表します。
@see Float -
JSON
. create _ id=(identifier) (27294.0) -
json_create メソッドで使用するクラスを決定するために使用する値をセットします。
...
json_create メソッドで使用するクラスを決定するために使用する値をセットします。
@param identifier 識別子を指定します。
//emlist[例][ruby]{
require "json"
require "json/add/core"
JSON.create_id # => "json_class"
puts (1..5).to_json......# => {"json_class":"Range","a":[1,5,false]}
JSON.create_id = "my_json_class" # => "my_json_class"
JSON.create_id # => "my_json_class"
puts (1..5).to_json # => {"my_json_class":"Range","a":[1,5,false]}
//}... -
JSON
. # load _ file!(filespec , opts = {}) -> object (27228.0) -
filespec で指定した JSON 形式のファイルを Ruby オブジェクトとしてロードして返します。
...filespec で指定した JSON 形式のファイルを Ruby オブジェクトとしてロードして返します。
@param filespec ファイル名を指定します。
@param options オプションをハッシュで指定します。指定可能なオプションは JSON.#parse! と同様で......す。
@see JSON.#parse!... -
JSON
. # load _ file(filespec , opts = {}) -> object (27228.0) -
filespec で指定した JSON 形式のファイルを Ruby オブジェクトとしてロードして返します。
...filespec で指定した JSON 形式のファイルを Ruby オブジェクトとしてロードして返します。
@param filespec ファイル名を指定します。
@param options オプションをハッシュで指定します。指定可能なオプションは JSON.#parse と同様で......す。
@see JSON.#parse... -
JSON
. create _ id -> String (27200.0) -
json_create メソッドで使用するクラスを決定するために使用する値を返します。
...
json_create メソッドで使用するクラスを決定するために使用する値を返します。
デフォルトは "json_class" です。
//emlist[例][ruby]{
require "json"
class User
attr :id, :name
def initialize(id, name)
@id, @name = id, name
end
def self.json_create(......new(object['id'], object["name"])
end
def as_json(*)
{
JSON.create_id => self.class.name,
"id" => id,
"name" => name,
}
end
def to_json(*)
as_json.to_json
end
end
json = JSON.generate(User.new(1, "tanaka"))
json # => "{\"json_class\":\"User\",\"id\":1,\"nam......e\":\"tanaka\"}"
JSON.parse(json, create_additions: true)
# => #<User:0x0000557709b269e0 @id=1, @name="tanaka">
//}... -
JSON
:: VERSION -> String (27101.0) -
このライブラリのバージョンを表す文字列です。
このライブラリのバージョンを表す文字列です。 -
JSON
:: VARIANT _ BINARY -> bool (27100.0) -
拡張ライブラリ版を使用している場合に真を返します。 そうでない場合は偽を返します。
拡張ライブラリ版を使用している場合に真を返します。
そうでない場合は偽を返します。 -
JSON
. # generate(object , state = nil) -> String (21260.0) -
与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。
...ジェクトを一行の JSON 形式の文字列に変換して返します。
デフォルトでは、サイズが最小となる JSON 形式の文字列を生成します。
また、循環参照のチェックを行います。JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を生成すること......もありません。
unparse は将来削除される予定です。
@param object JSON 形式の文字列に変換するオブジェクトを指定します。
@param state JSON::State または、to_hash や to_h メソッドでハッシュに変換可能なオブジェクトを指定できま......: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :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...