るりまサーチ

最速Rubyリファレンスマニュアル検索!
456件ヒット [201-300件を表示] (0.028秒)
トップページ > クエリ:JSON::State[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. json to_json
  2. json state
  3. json parser
  4. json generate
  5. json parse

検索結果

<< < 1 2 3 4 5 > >>

JSON::State#to_hash -> Hash (21007.0)

自身をハッシュに変換します。

...自身をハッシュに変換します。

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

json_state = JSON::State.new
pp json_state.to_h

# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,...

JSON::State#[](name) -> object (21001.0)

Return the value returned by method name.

Return the value returned by method name.

JSON::State#[]=(name, value) (21001.0)

Set the attribute name to value.

Set the attribute name to value.

JSON::State#ascii_only? -> bool (21001.0)

ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。 そうでない場合に偽を返します。

ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。
そうでない場合に偽を返します。

JSON::State#buffer_initial_length -> Integer (21001.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) (21001.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 (21001.0)

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

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

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

a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]...

JSON::State#depth -> Integer (21001.0)

This integer returns the current depth of data structure nesting.

This integer returns the current depth of data structure nesting.

JSON::State#depth=(depth) (21001.0)

This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.

This sets the maximum level of data structure nesting in the generated
JSON to the integer depth, max_nesting = 0 if no maximum should be
checked.
<< < 1 2 3 4 5 > >>