Sha256: 29c20bc1e3836d69c17ce488801b4533335084dd47de7877fe5d9de71a8d6535

Contents?: true

Size: 446 Bytes

Versions: 163

Compression:

Stored size: 446 Bytes

Contents

require 'yajl' unless defined?(::Yajl)

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

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

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

Version data entries

163 entries across 94 versions & 17 rubygems

Version Path
classiccms-0.6.3 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.6.2 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.6.2 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.6.1 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.6.1 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.6.0 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.6.0 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
challah-0.8.1 vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
classiccms-0.5.17 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.17 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.16 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.16 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.15 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.15 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.14 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.14 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.13 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.13 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.12 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.12 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb