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
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
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb
multi_json-1.10.1 lib/multi_json/adapters/yajl.rb
multi_json-1.10.0 lib/multi_json/adapters/yajl.rb
multi_json-1.9.3 lib/multi_json/adapters/yajl.rb
multi_json-1.9.2 lib/multi_json/adapters/yajl.rb
multi_json-1.9.1 lib/multi_json/adapters/yajl.rb
multi_json-1.9.0 lib/multi_json/adapters/yajl.rb
plyom_user-0.3.1 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.3.0 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.9 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.8 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.7 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.6 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.5 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.4 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.3 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.2 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.1 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb
plyom_user-0.2.0 vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb