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
railscast-assets-0.0.2 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
backbone-deep-rails-0.0.1 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
challah-0.9.1.beta vendor/bundle/gems/multi_json-1.4.0/lib/multi_json/adapters/yajl.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
challah-0.9.0 vendor/bundle/gems/multi_json-1.4.0/lib/multi_json/adapters/yajl.rb
classiccms-0.6.9 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.6.9 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
jquery_regex-0.0.1 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
multi_json-1.5.0 lib/multi_json/adapters/yajl.rb
multi_json-1.4.0 lib/multi_json/adapters/yajl.rb