class MultiJson::Adapters::Yajl - multi_json-1.10.1 Documentation

# class MultiJson::Adapters::Yajl

Use the Yajl-Ruby library to dump/load.

### Constants

ParseError

### Public Instance Methods

dump(object, options={}) click to toggle source

    # File lib/multi_json/adapters/yajl.rb, line 14
    def dump(object, options={})
      ::Yajl::Encoder.encode(object, options)
    end

load(string, options={}) click to toggle source

    # File lib/multi_json/adapters/yajl.rb, line 10
    def load(string, options={})
      ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string)
    end