Sha256: b15b163d6c3a9a644d950876dafa8f6e877ef49fe6dc342dab34ac0e17d1a751

Contents?: true

Size: 444 Bytes

Versions: 58

Compression:

Stored size: 444 Bytes

Contents

require 'oj' unless defined?(::Oj)

module MultiJson
  module Adapters
    # Use the Oj library to dump/load.
    class Oj
      ParseError = SyntaxError

      ::Oj.default_options = {:mode => :compat}

      def self.load(string, options={}) #:nodoc:
        ::Oj.load(string, :symbol_keys => options[:symbolize_keys])
      end

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

Version data entries

58 entries across 58 versions & 4 rubygems

Version Path
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.8 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.7 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.6 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.5 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.4 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.3 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.2 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.1 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.3.0 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
classiccms-0.2.4.pre vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/oj.rb
multi_json-1.3.4 lib/multi_json/adapters/oj.rb
multi_json-1.3.3 lib/multi_json/adapters/oj.rb
multi_json-1.3.2 lib/multi_json/adapters/oj.rb
multi_json-1.3.1 lib/multi_json/adapters/oj.rb
multi_json-1.3.0 lib/multi_json/adapters/oj.rb