Some parts adapted from golang.org/src/pkg/json/decode.go and golang.org/src/pkg/utf8/utf8.go
VERSION | = | "1.5.0" unless defined?(MultiJson::VERSION) |
REQUIREMENT_MAP | = | [ ["oj", :oj], ["yajl", :yajl], ["json", :json_gem], ["json/pure", :json_pure] |
default_adapter | -> | default_engine |
:nodoc: | ||
adapter | -> | engine |
:nodoc: | ||
use | -> | adapter= |
use | -> | engine= |
:nodoc: | ||
load | -> | decode |
:nodoc: | ||
dump | -> | encode |
:nodoc: | ||
with_adapter | -> | with_engine |
The default adapter based on what you currently have loaded and installed. First checks to see if any adapters are already loaded, then checks to see which are installed if none are loaded.