660件ヒット
[1-100件を表示]
(0.090秒)
クラス
- BigDecimal (11)
- Complex (11)
- Date (11)
- DateTime (11)
- Exception (11)
-
JSON
:: Parser (11) -
JSON
:: State (165) - OpenStruct (11)
- Range (11)
- Rational (11)
- Regexp (11)
- Struct (11)
- Symbol (11)
- Time (11)
モジュール
- JSON (132)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11)
キーワード
- Extend (22)
- Infinity (11)
- Integer (22)
- MinusInfinity (11)
- MissingUnicodeSupport (11)
- NestingError (11)
- String (22)
-
VARIANT
_ BINARY (11) - VERSION (11)
-
array
_ nl (11) -
buffer
_ initial _ length (11) -
buffer
_ initial _ length= (11) -
create
_ id (11) - depth (11)
- dump (11)
-
fast
_ generate (11) -
fast
_ unparse (11) - generate (22)
- indent (11)
- indent= (11)
-
json
_ create (11) -
max
_ nesting (11) -
max
_ nesting= (11) -
object
_ nl (11) -
object
_ nl= (11) -
pretty
_ generate (11) -
pretty
_ unparse (11) - source (11)
- space (11)
- space= (11)
-
space
_ before (11) -
space
_ before= (11) -
to
_ json (231) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) - unparse (11)
検索結果
先頭5件
-
JSON
:: MinusInfinity -> Float (36602.0) -
負の無限大を表します。
負の無限大を表します。
@see Float -
JSON
:: Infinity -> Float (24402.0) -
正の無限大を表します。
正の無限大を表します。
@see Float -
JSON
:: State # buffer _ initial _ length -> Integer (12402.0) -
This integer returns the current initial length of the buffer.
...This integer returns the current initial length of the buffer.... -
JSON
:: State # indent -> String (12402.0) -
インデントに使用する文字列を返します。
...インデントに使用する文字列を返します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
//}... -
JSON
:: State # indent=(string) (12402.0) -
インデントに使用する文字列をセットします。
...ing インデントに使用する文字列を指定します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.in......dent = " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}... -
JSON
:: State # max _ nesting -> Integer (12402.0) -
生成される JSON 形式の文字列のネストの深さの最大値を返します。
... JSON 形式の文字列のネストの深さの最大値を返します。
この値がゼロである場合は、ネストの深さのチェックを行いません。
//emlist[例 ネストの深さチェックを行う][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 2)
json_s......_nesting # => 2
JSON.generate([[]], json_state)
JSON.generate([[[]]], json_state) # => JSON::NestingError
//}
//emlist[例 ネストの深さチェックを行わない][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 0)
json_state.max_nesting # => 0
JSON.gene......rate([[[[[[[[[[]]]]]]]]]], json_state)
//}... -
JSON
:: State # buffer _ initial _ length=(length) (12202.0) -
This sets the initial length of the buffer to length, if length > 0, otherwise its value isn't changed.
...This sets the initial length of the buffer to length, if length > 0,
otherwise its value isn't changed.... -
JSON
:: State # max _ nesting=(depth) (12202.0) -
生成される JSON 形式の文字列のネストの深さの最大値をセットします。
...れる JSON 形式の文字列のネストの深さの最大値をセットします。
この値にゼロをセットすると、ネストの深さのチェックを行いません。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 2)
json_state.max_nesting......# => 2
JSON.generate([[]], json_state)
json_state.max_nesting = 3
json_state.max_nesting # => 3
JSON.generate([[[[]]]], json_state) # => JSON::NestingError
//}... -
JSON
:: VARIANT _ BINARY -> bool (12202.0) -
拡張ライブラリ版を使用している場合に真を返します。 そうでない場合は偽を返します。
拡張ライブラリ版を使用している場合に真を返します。
そうでない場合は偽を返します。 -
JSON
:: Ext :: Generator :: GeneratorMethods :: Integer (12002.0) -
Alias of JSON::Generator::GeneratorMethods::Integer
...Alias of JSON::Generator::GeneratorMethods::Integer...