Sha256: e78a36459e111b56ddfcb2c614e13f7331b03c6334437bbaa2a59f1a21a724b1

Contents?: true

Size: 457 Bytes

Versions: 66

Compression:

Stored size: 457 Bytes

Contents

require 'yajl' unless defined?(::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

66 entries across 64 versions & 10 rubygems

Version Path
scout-5.9.13 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.12 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.11 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.10.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.8 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.7.2.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.8.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.7.1 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.7.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/multi_json-1.7.9/lib/multi_json/adapters/yajl.rb
scout-5.9.5 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.4 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.4.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.3 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.2 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.1 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.1.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.0 vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.9.0.pre vendor/multi_json/lib/multi_json/adapters/yajl.rb
scout-5.8.9 vendor/multi_json/lib/multi_json/adapters/yajl.rb