Sha256: 019d48ebe72a992abe9ea2113959d0dbeb0c9890d7a40b2472baef1e86b6a020

Contents?: true

Size: 456 Bytes

Versions: 96

Compression:

Stored size: 456 Bytes

Contents

require 'yajl' unless defined?(::Yajl)

module MultiJson
  module Adapters
    # Use the Yajl-Ruby library to dump/load.
    module Yajl
      extend self

      ParseError = ::Yajl::ParseError

      def load(string, options={}) #:nodoc:
        ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string)
      end

      def dump(object, options={}) #:nodoc:
        ::Yajl::Encoder.encode(object, options)
      end
    end
  end
end

Version data entries

96 entries across 94 versions & 7 rubygems

Version Path
engineyard-serverside-2.6.1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.0 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/multi_json-1.6.1/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.cs6 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.cs5 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.cs4 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.cs3 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.cs2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.cs lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.5.0.compilesync lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.4.2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.4.1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.4.0 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.3.9 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.3.7 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.3.6 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.3.5 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.3.4 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.3.3 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb