るりまサーチ

最速Rubyリファレンスマニュアル検索!
396件ヒット [1-100件を表示] (0.107秒)
トップページ > クエリ:i[x] > クエリ:h[x] > ライブラリ:json[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

検索結果

<< 1 2 3 ... > >>

JSON::State#buffer_initial_length -> Integer (12302.0)

This integer returns the current initial length of the buffer.

...This integer returns the current initial length of the buffer....

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#check_circular? -> bool (12202.0)

循環参照のチェックを行う場合は、真を返します。 そうでない場合は偽を返します。

...//emlist[例 ネストをチェックするケース][ruby]{
require "json"

a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
s = JSON.stat...
...e.new
begin
JSON
.generate(a, s)
rescue JSON::NestingError => e
[e, s.max_nesting, s.check_circular?] # => [#<JSON::NestingError: nesting of 100 is too deep>, 100, true]
end
//}

//emlist[例 ネストをチェックしないケース][ruby]{
require "json"

a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...
...]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
s2 = JSON.state.new(max_nesting: 0)
json
= JSON.generate(a, s2)
[json, s2.max_nesting, s2.check_circular?] # => ["[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...

JSON::Ext::Generator::GeneratorMethods::Integer (9002.0)

Alias of JSON::Generator::GeneratorMethods::Integer

...Alias of JSON::Generator::GeneratorMethods::Integer...

JSON::Ext::Generator::GeneratorMethods::NilClass (9002.0)

Alias of JSON::Generator::GeneratorMethods::NilClass

...Alias of JSON::Generator::GeneratorMethods::NilClass...

絞り込み条件を変える

JSON::Ext::Generator::GeneratorMethods::String (9002.0)

Alias of JSON::Generator::GeneratorMethods::String

...Alias of JSON::Generator::GeneratorMethods::String...

JSON::Generator::GeneratorMethods::Integer (9002.0)

Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

...Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。...

JSON::Generator::GeneratorMethods::NilClass (9002.0)

NilClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

...NilClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。...

JSON::Generator::GeneratorMethods::String (9002.0)

String に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

...String に JSON で使用するインスタンスメソッドを追加するためのモジュールです。...

JSON::Generator::GeneratorMethods::Integer#to_json(state_or_hash = nil) -> String (6202.0)

自身から生成した JSON 形式の文字列を返します。

...から生成した JSON 形式の文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
JSON::State のインスタンスか、
JSON
::State.new の引数と同じ Hash...
...指定します。

//emlist[例][ruby]{
require "json"

10.to_json # => "10"
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>