Module MultiJson
In: lib/multi_json/version.rb
lib/multi_json/engines/json_gem.rb
lib/multi_json/engines/oj.rb
lib/multi_json/engines/nsjsonserialization.rb
lib/multi_json/engines/yajl.rb
lib/multi_json/engines/json_common.rb
lib/multi_json/engines/ok_json.rb
lib/multi_json/engines/json_pure.rb
lib/multi_json/vendor/ok_json.rb
lib/multi_json.rb

Methods

decode   default_engine   encode   engine   engine=  

Classes and Modules

Module MultiJson::Engines
Module MultiJson::OkJson
Class MultiJson::DecodeError

Constants

VERSION = "1.2.0"
REQUIREMENT_MAP = [ ["oj", :oj], ["yajl", :yajl], ["json", :json_gem], ["json/pure", :json_pure]
DEFAULT_ENGINE_WARNING = 'Warning: multi_json is using default ok_json engine. Suggested action: require and load an appropriate JSON library.'

Public Instance methods

Decode a JSON string into Ruby.

Options

:symbolize_keys :If true, will use symbols instead of strings for the keys.

The default engine based on what you currently have loaded and installed. First checks to see if any engines are already loaded, then checks to see which are installed if none are loaded.

Encodes a Ruby object as JSON.

Get the current engine class.

Set the JSON parser utilizing a symbol, string, or class. Supported by default are:

  • :json_gem
  • :json_pure
  • :ok_json
  • :yajl
  • :nsjsonserialization (MacRuby only)

[Validate]