Sha256: a66772c8b008684d68e65c0fb63ae802bdad17140f5fad111af922ef4307422f

Contents?: true

Size: 433 Bytes

Versions: 63

Compression:

Stored size: 433 Bytes

Contents

require 'yajl'
require 'multi_json/adapter'

module MultiJson
  module Adapters
    # Use the Yajl-Ruby library to dump/load.
    class Yajl < Adapter
      ParseError = ::Yajl::ParseError

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

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

Version data entries

63 entries across 56 versions & 11 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/multi_json-1.11.2/lib/multi_json/adapters/yajl.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/multi_json-1.11.2/lib/multi_json/adapters/yajl.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/multi_json-1.11.2/lib/multi_json/adapters/yajl.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/multi_json-1.11.2/lib/multi_json/adapters/yajl.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/multi_json-1.11.2/lib/multi_json/adapters/yajl.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/multi_json-1.11.2/lib/multi_json/adapters/yajl.rb
multi_json-1.11.2 lib/multi_json/adapters/yajl.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/multi_json-1.11.1/lib/multi_json/adapters/yajl.rb
multi_json-1.11.1 lib/multi_json/adapters/yajl.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/multi_json-1.11.0/lib/multi_json/adapters/yajl.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/multi_json-1.11.0/lib/multi_json/adapters/yajl.rb
multi_json-1.11.0 lib/multi_json/adapters/yajl.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb