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.8.0 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.8.0.pre4 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.8.0.pre3 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.8.0.pre2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.8.0.pre lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.7.0.pre lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.19 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.17 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.16 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.15.alpha1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.15.cf2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.15.pre lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.14 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.13 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.12 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.12.prewut5 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.12.prewut4 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.12.prewut3 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.12.prewut2 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
engineyard-serverside-2.6.12.prewut1 lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb