るりまサーチ

最速Rubyリファレンスマニュアル検索!
110件ヒット [1-100件を表示] (0.024秒)
トップページ > クエリ:Data[x] > クエリ:data[x] > クエリ:json[x]

別のキーワード

  1. net/imap data
  2. net/imap raw_data
  3. smtp data
  4. net/smtp data
  5. socket data

ライブラリ

クラス

検索結果

<< 1 2 > >>

json (38106.0)

JSON (JavaScript Object Notation)を扱うライブラリです。

...JSON (JavaScript Object Notation)を扱うライブラリです。

このライブラリでは、JSON モジュールに JSON を操作するための代表的なメソッドが集められています。
詳細は JSON モジュールを参照してください。

JSON
の仕様は 7159 を参照...
...y]{
require "json"

# JSON文字列をRubyのオブジェクトに変換する
json
_str = '{"name": "Ruby", "age": 30}'
JSON
.parse(json_str) # => {"name"=>"Ruby", "age"=>30}

# RubyのオブジェクトをJSON文字列に変換する
data
= {"name" => "Ruby", "age" => 30}
JSON
.dump(data) # => "{\"na...

JSON::CircularDatastructure (23016.0)

JSON 形式の文字列を生成するときに循環するデータ構造があるときに発生する例外です。

...JSON 形式の文字列を生成するときに循環するデータ構造があるときに発生する例外です。...

JSON::Parser.new(source, options => {}) -> JSON::Parser (11161.0)

パーサを初期化します。

...も付加情報を生成しません。デフォルトは真です。
: :object_class
JSON
のオブジェクトを変換するクラスを指定します。デフォルトは Hash です。
: :array_class
JSON
の配列を変換するクラスを指定します。デフォルトは Array です...
...を指定します。

@param options オプションを指定するためのハッシュです。

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

parser = JSON::Parser.new(DATA.read)
print parser.source

# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# =>...
...5
}
}
//}

//emlist[例 object_class を指定する][ruby]{
require 'json'

class Person
attr_accessor :name, :age

def []=(key, value)
instance_variable_set("@#{key}", value)
end
end

parser = JSON::Parser.new(DATA.read, object_class: Person)
person = parser.parse
person.class # => Per...

JSON::State#depth=(depth) (11048.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....

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

This integer returns the current depth of data structure nesting.

...This integer returns the current depth of data structure nesting....

絞り込み条件を変える

JSON::Parser#parse -> object (11030.0)

現在のソースをパースして結果を Ruby のオブジェクトとして返します。

...ブジェクトとして返します。

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

class Person
attr_accessor :name, :age

def []=(key, value)
instance_variable_set("@#{key}", value)
end
end

parser = JSON::Parser.new(DATA.read, object_class: Person)
person = parser.parse
person.class # => Pers...
...on
person.name # => "tanaka"
person.age # => 20

__END__
{
"name":"tanaka",
"age":20
}
//}

@see JSON::Parser#source...

JSON::Parser#source -> String (11024.0)

現在のソースのコピーを返します。

...現在のソースのコピーを返します。

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

parser = JSON::Parser.new(DATA.read)
print parser.source

# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
#...

rdoc/generator/json_index (6058.0)

他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ クスを生成するサブライブラリです。

...他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ
クスを生成するサブライブラリです。

This generator is derived from sdoc by Vladimir Kolesnikov and
contains verbatim code written by him.

このジェネレータは HTML ジェ...
...and_path

@json_index = RDoc::Generator::JsonIndex.new self, options
end

def generate
# ...
@json_index.generate
end
end

=== インデックスフォーマット

検索用のインデックスは JSON ファイルに出力されます。search_data という
グロ...
...ーバル変数に以下のような内容で出力されます。

var search_data = {
"index": {
"searchIndex":
["a", "b", ...],
"longSearchIndex":
["a", "a::b", ...],
"info": [
["A", "A", "A.html", "", ""],
["B", "A::B", "A::B.html", "", ""]...

NEWS for Ruby 3.0.0 (108.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...*
* Can be sliced with Enumerator::ArithmeticSequence

//emlist[][ruby]{
dirty_data = ['--', 'data1', '--', 'data2', '--', 'data3']
dirty_data[(1..).step(2)] # take each second element
# => ["data1", "data2", "data3"]
//}

* Binding
* Binding#eval when called with one argument will use `"(...
...pdate to Etc 1.2.0
* This version is Ractor compatible.
* Fiddle
* Update to Fiddle 1.0.5
* IRB
* Update to IRB 1.2.6
* JSON
* Update to JSON 2.5.0
* This version is Ractor compatible.
* Set
* Update to set 1.0.0
* SortedSet has been removed for dependency and per...
...r a bitmap image, between extension libraries. The extension libraries can share also the metadata of the memory area that consists of the shape, the element format, and so on. Using these kinds of metadata, the extension libraries can share even a multidimensional array appropriately. This feature...

NEWS for Ruby 2.0.0 (42.0)

NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...を導入しました。期待しないスタックオーバーフローを避けるためです

* GC::Profiler
* 追加: GC::Profiler.raw_data GCの加工していないプロファイルデータを返します

* Hash
* 追加: Hash#to_h 明示的に変換するメソッドです。A...
...:min, :time を受け付けます。

* io/wait
* 追加: IO#wait_writable
* 追加: IO#wait_readable は IO#wait の別名です。

* json
* 1.7.7 に更新

* net/http
* 新機能
* Proxies are now automatically detected from the http_proxy environment
variabl...
...o adapt to situations where FIPS mode would be an
explicit requirement.
* Authenticated Encryption with Associated Data (AEAD) is supported via
Cipher#auth_data= and Cipher#auth_tag/Cipher#auth_tag=.
Currently (OpenSSL 1.0.1c), only GCM mode is supported.

* ostruct
* 追...

絞り込み条件を変える

<< 1 2 > >>