Sha256: ab2746397e9008c992e48efa9904a5bad7b8af81280353295ef323fbc46214f8

Contents?: true

Size: 437 Bytes

Versions: 125

Compression:

Stored size: 437 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

125 entries across 106 versions & 22 rubygems

Version Path
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/multi_json-1.13.1/lib/multi_json/adapters/yajl.rb
mercadopago-custom-checkout-0.1.1 .gs/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/multi_json-1.13.1/lib/multi_json/adapters/yajl.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/multi_json-1.12.2/lib/multi_json/adapters/yajl.rb
tdiary-5.0.8 vendor/bundle/gems/multi_json-1.13.1/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/multi_json-1.13.1/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/multi_json-1.13.1/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.2/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb
multi_json-1.13.1 lib/multi_json/adapters/yajl.rb
multi_json-1.13.0 lib/multi_json/adapters/yajl.rb
tdiary-5.0.7 vendor/bundle/gems/multi_json-1.12.2/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.2/lib/multi_json/adapters/yajl.rb
tdiary-5.0.6 vendor/bundle/gems/multi_json-1.12.2/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb
multi_json-1.12.2 lib/multi_json/adapters/yajl.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb