# Table of Contents - Oj

## Pages

- README
  - gem
  - Using
  - Installation
  - Support
  - Further Reading
  - Releases
  - Links
  - Performance Comparisons
  - Links of Interest
- Makefile
- Advanced
  - Advanced Features
- Compatibility
  - Compatibility
- Custom
  - Custom mode
- Encoding
  - Oj `:object` Mode Encoding
- JsonGem
  - Oj JSON Gem Compatibility
- Modes
  - Oj Modes
  - :strict Mode
  - :null Mode
  - :compat or :json Mode
  - :rails Mode
  - :object Mode
  - :custom Mode
  - :wab Mode
  - Options Matrix
- Options
  - Oj Options
  - Options for serializer and parser
  - :allow_blank [Boolean]
  - :allow_gc [Boolean]
  - :allow_invalid_unicode [Boolean]
  - :allow_nan
  - :array_class [Class]
  - :array_nl
  - :ascii_only
  - :auto_define [Boolean]
  - :bigdecimal_as_decimal [Boolean]
  - :bigdecimal_load [Symbol]
  - :circular [Boolean]
  - :class_cache [Boolean]
  - :create_additions
  - :create_id [String]
  - :empty_string [Boolean]
  - :escape_mode [Symbol]
  - :float_precision [Fixnum]
  - :hash_class [Class]
  - :ignore [Array]
  - :indent [Fixnum]
  - :indent_str
  - :integer_range [Range]
  - :match_string
  - :max_nesting
  - :mode [Symbol]
  - :nan [Symbol]
  - :nilnil [Boolean]
  - :object_class
  - :object_nl
  - :omit_nil [Boolean]
  - :quirks_mode [Boolean]
  - :second_precision [Fixnum]
  - :space
  - :space_before
  - :symbol_keys [Boolean]
  - :trace
  - :time_format [Symbol]
  - :use_as_json [Boolean]
  - :use_to_hash [Boolean]
  - :use_to_json [Boolean]
- Rails
  - Oj Rails Compatibility
  - Notes:
- Security
  - Security and Optimization
- WAB
  - WAB mode

## Classes and Modules

- DateTime
- JSON
- JSON::Ext
- JSON::Ext::Generator
- JSON::Ext::Generator::State
- JSON::Ext::Parser
- JSON::GeneratorError
- JSON::GenericObject
- JSON::JSONError
- JSON::ParserError
- Object
- Oj
- Oj::ActiveSupportHelper
- Oj::Bag
- Oj::CStack
- Oj::Doc
- Oj::EasyHash
- Oj::MimicDumpOption
- Oj::Rails
- Oj::Rails::Encoder
- Oj::Saj
- Oj::ScHandler
- Oj::StreamWriter
- Oj::StringWriter
- String
- unknown

## Methods

- ::JSON — Object
- ::[] — JSON
- ::add_to_json — Oj
- ::compat_load — Oj
- ::createTimeWithZone — Oj::ActiveSupportHelper
- ::create_id — JSON
- ::create_id= — JSON
- ::default_options — Oj
- ::default_options= — Oj
- ::define_class — Oj::Bag
- ::deoptimize — Oj::Rails
- ::dump — Oj
- ::dump — JSON
- ::dump — JSON::GenericObject
- ::dump_default_options — JSON
- ::dump_default_options= — JSON
- ::encode — Oj::Rails
- ::fast_generate — JSON
- ::fast_unparse — JSON
- ::from_hash — JSON::GenericObject
- ::from_state — JSON::Ext::Generator::State
- ::generate — JSON
- ::generate — Oj
- ::generator — JSON
- ::generator= — JSON
- ::json_creatable? — JSON::GenericObject
- ::json_create — Oj
- ::json_create — String
- ::json_create — JSON::GenericObject
- ::load — JSON::GenericObject
- ::load — Oj
- ::load — JSON
- ::load_file — Oj
- ::mimic_JSON — Oj
- ::mimic_JSON — Oj::Rails
- ::mimic_loaded — Oj
- ::new — Oj::Saj
- ::new — JSON::Ext::Generator::State
- ::new — Oj::Rails::Encoder
- ::new — Oj::ScHandler
- ::new — Oj::StreamWriter
- ::new — Oj::StringWriter
- ::new — Oj::Bag
- ::new — Oj::EasyHash
- ::new — JSON::Ext::Parser
- ::new — Oj::MimicDumpOption
- ::object_load — Oj
- ::open — Oj::Doc
- ::open_file — Oj::Doc
- ::optimize — Oj::Rails
- ::optimized? — Oj::Rails
- ::parse — Oj::Doc
- ::parse — JSON
- ::parse! — JSON
- ::parser — JSON
- ::parser= — JSON
- ::pretty_generate — JSON
- ::pretty_unparse — JSON
- ::recurse_proc — JSON
- ::register_odd — Oj
- ::register_odd_raw — Oj
- ::restore — JSON
- ::safe_load — Oj
- ::saj_parse — Oj
- ::sc_parse — Oj
- ::set_decoder — Oj::Rails
- ::set_encoder — Oj::Rails
- ::state — JSON
- ::strict_load — Oj
- ::to_file — Oj
- ::to_json — Oj
- ::to_stream — Oj
- ::unparse — JSON
- ::wab_load — Oj
- #== — Oj::Bag
- #[] — JSON::Ext::Generator::State
- #[] — Oj::EasyHash
- #[] — JSON::GenericObject
- #[]= — JSON::Ext::Generator::State
- #[]= — JSON::GenericObject
- #[]= — Oj::MimicDumpOption
- #add_value — Oj::ScHandler
- #add_value — Oj::Saj
- #allow_nan? — JSON::Ext::Generator::State
- #array_append — Oj::ScHandler
- #array_end — Oj::Saj
- #array_end — Oj::ScHandler
- #array_start — Oj::ScHandler
- #array_start — Oj::Saj
- #as_json — JSON::GenericObject
- #as_json — Oj
- #ascii_only? — JSON::Ext::Generator::State
- #buffer_initial_length= — JSON::Ext::Generator::State
- #clear — JSON::Ext::Generator::State
- #clone — Oj::Doc
- #close — Oj::Doc
- #configure — JSON::Ext::Generator::State
- #deoptimize — Oj::Rails::Encoder
- #dump — Oj::Doc
- #dup — Oj::Doc
- #each_child — Oj::Doc
- #each_leaf — Oj::Doc
- #each_value — Oj::Doc
- #encode — Oj::Rails::Encoder
- #eql? — Oj::Bag
- #error — Oj::Saj
- #fetch — Oj::Doc
- #flush — Oj::StreamWriter
- #generate — JSON::Ext::Generator::State
- #has_key? — JSON::Ext::Generator::State
- #hash_end — Oj::Saj
- #hash_end — Oj::ScHandler
- #hash_key — Oj::ScHandler
- #hash_set — Oj::ScHandler
- #hash_start — Oj::Saj
- #hash_start — Oj::ScHandler
- #home — Oj::Doc
- #hour — DateTime
- #local_key — Oj::Doc
- #merge — JSON::Ext::Generator::State
- #method_missing — JSON::Ext::Generator::State
- #method_missing — Oj::EasyHash
- #method_missing — Oj::Bag
- #min — DateTime
- #move — Oj::Doc
- #offset — DateTime
- #optimize — Oj::Rails::Encoder
- #optimized? — Oj::Rails::Encoder
- #parse — JSON::Ext::Parser
- #pop — Oj::StringWriter
- #pop — Oj::StreamWriter
- #pop_all — Oj::StringWriter
- #pop_all — Oj::StreamWriter
- #push_array — Oj::StringWriter
- #push_array — Oj::StreamWriter
- #push_json — Oj::StreamWriter
- #push_json — Oj::StringWriter
- #push_key — Oj::StringWriter
- #push_key — Oj::StreamWriter
- #push_object — Oj::StringWriter
- #push_object — Oj::StreamWriter
- #push_value — Oj::StringWriter
- #push_value — Oj::StreamWriter
- #reset — Oj::StringWriter
- #respond_to? — JSON::Ext::Generator::State
- #respond_to? — Oj::EasyHash
- #respond_to? — Oj::Bag
- #sec — DateTime
- #sec_fraction — DateTime
- #size — Oj::Doc
- #source — JSON::Ext::Parser
- #to_h — JSON::Ext::Generator::State
- #to_hash — JSON::Ext::Generator::State
- #to_hash — JSON::GenericObject
- #to_json — Object
- #to_json — JSON::GenericObject
- #to_json_raw — String
- #to_json_raw_object — String
- #to_s — Oj::StringWriter
- #type — Oj::Doc
- #where? — Oj::Doc
- #| — JSON::GenericObject