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.5.11 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.11 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
multi_json-maglev--1.3.6 lib/multi_json/adapters/yajl.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
challah-rolls-0.1.0 vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
challah-0.8.0.pre vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
challah-0.7.1 vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
classiccms-0.5.10 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.10 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.9 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.9 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
challah-0.7.0 vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
challah-0.7.0.pre2 vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb
classiccms-0.5.8 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.8 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.7 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.7 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.6 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.5.6 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.5.5 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb