Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > jsonライブラリ

library json

要約

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

JSON の仕様は [RFC4627] を参照してください。

クラス

class JSON::Ext::Generator::State

Alias of JSON::State

class JSON::Ext::Parser

Alias of JSON::Parser

class JSON::Parser
class JSON::State

Ruby オブジェクトから JSON 形式の文字列を生成する間、 JSON 形式の文字列を生成するための設定を保持しておくために使用するクラスです。

モジュール

module JSON

JSON (JavaScript Object Notation) を扱うためのモジュールです。

module JSON::Ext::Generator::GeneratorMethods::Array

Alias of JSON::Generator::GeneratorMethods::Array

module JSON::Ext::Generator::GeneratorMethods::FalseClass

Alias of JSON::Generator::GeneratorMethods::FalseClass

module JSON::Ext::Generator::GeneratorMethods::Float

Alias of JSON::Generator::GeneratorMethods::Float

module JSON::Ext::Generator::GeneratorMethods::Hash

Alias of JSON::Generator::GeneratorMethods::Hash

module JSON::Ext::Generator::GeneratorMethods::Integer

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

module JSON::Ext::Generator::GeneratorMethods::NilClass

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

module JSON::Ext::Generator::GeneratorMethods::Object

Alias of JSON::Generator::GeneratorMethods::Object

module JSON::Ext::Generator::GeneratorMethods::String

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

module JSON::Ext::Generator::GeneratorMethods::String::Extend

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

module JSON::Ext::Generator::GeneratorMethods::TrueClass

Alias of JSON::Generator::GeneratorMethods::TrueClass

module JSON::Generator::GeneratorMethods::Array

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

module JSON::Generator::GeneratorMethods::FalseClass

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

module JSON::Generator::GeneratorMethods::Float

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

module JSON::Generator::GeneratorMethods::Hash

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

module JSON::Generator::GeneratorMethods::Integer

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

module JSON::Generator::GeneratorMethods::NilClass

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

module JSON::Generator::GeneratorMethods::Object

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

module JSON::Generator::GeneratorMethods::String

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

module JSON::Generator::GeneratorMethods::String::Extend

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

module JSON::Generator::GeneratorMethods::TrueClass

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

例外クラス

class JSON::JSONError

JSON のエラーのための基底クラスです。

  class JSON::GeneratorError

JSON 形式の文字列を生成するときに発生したエラーを通知する例外です。

   class JSON::CircularDatastructure

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

  class JSON::MissingUnicodeSupport

要求されたユニコードサポートがシステムにインストールされていない場合に発生する例外です。 通常、これは iconv がインストールされていないことを意味します。

  class JSON::ParserError

JSON のパースエラーを通知する例外です。

   class JSON::NestingError

パースしようとしているデータ構造のネストが深すぎる場合に発生する例外です。

  class JSON::UnparserError

Alias of JSON::GeneratorError

サブライブラリ

json/add/core

Ruby のコアクラスに JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。

json/editor

Gtk2 を用いて書かれた JSON エディターです。

追加・再定義されるメソッド

Class#json_creatable? Kernel#JSON Kernel#j Kernel#jj

library json