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.12.prewut0 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.11 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.10 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.9pre3 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.9pre2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.9pre1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.8 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.8pre2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.7.8pre2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.8pre1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.7 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.7.pre2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.7.pre1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.6 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.5.pre1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.5.jacobpre lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.4 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.3 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb