ライブラリ
- ビルトイン (30)
- json (1284)
-
json
/ add / bigdecimal (24) -
json
/ add / complex (24) -
json
/ add / date (24) -
json
/ add / date _ time (24) -
json
/ add / exception (24) -
json
/ add / ostruct (24) -
json
/ add / range (24) -
json
/ add / rational (24) -
json
/ add / regexp (24) -
json
/ add / struct (24) -
json
/ add / symbol (24) -
json
/ add / time (24) -
json
/ editor (12) - psych (12)
-
rdoc
/ generator / json _ index (48)
クラス
- BigDecimal (24)
- Class (12)
- Complex (24)
- Date (24)
- DateTime (24)
- Exception (24)
-
JSON
:: Parser (36) -
JSON
:: State (372) - Object (30)
- OpenStruct (24)
-
RDoc
:: Generator :: JsonIndex (36) - Range (24)
- Rational (24)
- Regexp (24)
- Struct (24)
- Symbol (24)
- Time (24)
モジュール
- JSON (300)
-
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)
キーワード
- Array (24)
- CircularDatastructure (12)
- Editor (12)
- Extend (24)
- FalseClass (24)
- Float (24)
- GeneratorError (12)
- Hash (24)
- Infinity (12)
- Integer (24)
- JSONError (12)
-
JSON
_ LOADED (12) - JsonIndex (12)
- MinusInfinity (12)
- MissingUnicodeSupport (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NaN (12)
- NestingError (12)
- NilClass (24)
- Object (24)
- Parser (24)
- ParserError (12)
-
SEARCH
_ INDEX _ FILE (12) - State (24)
- String (24)
- TrueClass (24)
- UnparserError (12)
-
VARIANT
_ BINARY (12) - VERSION (12)
- [] (24)
- []= (12)
-
allow
_ nan? (12) -
array
_ nl (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)
- depth= (12)
- dump (12)
-
fast
_ generate (12) -
fast
_ unparse (12) -
from
_ state (12) - generate (36)
- generator (12)
- indent (12)
- indent= (12)
- j (12)
- jj (12)
- json (12)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / core (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) -
json
/ editor (12) -
json
_ creatable? (12) -
json
_ create (156) - 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 (24)
- parse! (12)
- parser (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) - state (12)
- then (14)
-
to
_ h (12) -
to
_ hash (12) -
to
_ json (264) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) - unparse (12)
-
yield
_ self (16)
検索結果
先頭5件
-
JSON (38016.0)
-
JSON (JavaScript Object Notation) を扱うためのモジュールです。
...JSON (JavaScript Object Notation) を扱うためのモジュールです。... -
JSON
:: JSON _ LOADED -> bool (27117.0) -
JSON ライブラリがロード済みである場合に真を返します。 そうでない場合は偽を返します。
...
JSON ライブラリがロード済みである場合に真を返します。
そうでない場合は偽を返します。... -
JSON
. # generate(object , state = nil) -> String (21160.0) -
与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。
...オブジェクトを一行の JSON 形式の文字列に変換して返します。
デフォルトでは、サイズが最小となる JSON 形式の文字列を生成します。
また、循環参照のチェックを行います。JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を生成する......こともありません。
unparse は将来削除される予定です。
@param object JSON 形式の文字列に変換するオブジェクトを指定します。
@param state JSON::State または、to_hash や to_h メソッドでハッシュに変換可能なオブジェクトを指定で......tring 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: '')
: :check_circular
真を指定した場合、生成するオブジェクトの循環... -
JSON
. # unparse(object , state = nil) -> String (21160.0) -
与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。
...オブジェクトを一行の JSON 形式の文字列に変換して返します。
デフォルトでは、サイズが最小となる JSON 形式の文字列を生成します。
また、循環参照のチェックを行います。JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を生成する......こともありません。
unparse は将来削除される予定です。
@param object JSON 形式の文字列に変換するオブジェクトを指定します。
@param state JSON::State または、to_hash や to_h メソッドでハッシュに変換可能なオブジェクトを指定で......tring 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: '')
: :check_circular
真を指定した場合、生成するオブジェクトの循環... -
JSON
. parser -> JSON :: Ext :: Parser (21135.0) -
JSON ライブラリがパーサとして使用するクラスを返します。
...
JSON ライブラリがパーサとして使用するクラスを返します。
//emlist[例][ruby]{
require "json"
JSON.parser # => JSON::Ext::Parser
//}... -
JSON
. state -> JSON :: Ext :: Generator :: State (21135.0) -
JSON ライブラリがジェネレータの状態を表すクラスとして使用するクラスを返します。
...
JSON ライブラリがジェネレータの状態を表すクラスとして使用するクラスを返します。
//emlist[例][ruby]{
require "json"
JSON.state # => JSON::Ext::Generator::State
//}... -
JSON
. generator -> JSON :: Ext :: Generator (21117.0) -
JSON ライブラリがジェネレータとして使用するモジュールを返します。
...
JSON ライブラリがジェネレータとして使用するモジュールを返します。... -
JSON
. # load(source , proc = nil , options = {}) -> object (21112.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
... JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON
[1,2,3]
JSON......
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v| p v }) # => {"a"=>1, "b"=>2, "c"=>3}......# 以下が表示される
# "a"
# 1
# "b"
# 2
# "c"
# 3
# {"a"=>1, "b"=>2, "c"=>3}
@param source JSON 形式の文字列を指定します。他には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指... -
JSON
. # parse!(source , options = {}) -> object (21112.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトに変換して返します。
...えられた JSON 形式の文字列を Ruby オブジェクトに変換して返します。
JSON.#parse よりも危険なデフォルト値が指定されているので
信頼できる文字列のみを入力として使用するようにしてください。
@param source JSON 形式の文字......指定すると 4627 を無視してパース時に JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を許可するようになります。デフォルトは真です。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成......uire "json"
json_text = "[1,2,{\"name\":\"tanaka\",\"age\":19}, NaN]"
JSON.parse!(json_text)
# => [1, 2, {"name"=>"tanaka", "age"=>19}, NaN]
JSON.parse!(json_text, symbolize_names: true)
# => [1, 2, {:name=>"tanaka", :age=>19}, NaN]
JSON.parse(json_text) # => unexpected token at 'NaN]' (JSON::Par... -
JSON
. # restore(source , proc = nil , options = {}) -> object (21112.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
... JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON
[1,2,3]
JSON......
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v| p v }) # => {"a"=>1, "b"=>2, "c"=>3}......# 以下が表示される
# "a"
# 1
# "b"
# 2
# "c"
# 3
# {"a"=>1, "b"=>2, "c"=>3}
@param source JSON 形式の文字列を指定します。他には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指...