Sha256: 3ffe8d993d38fbe061811fc597536ae9a3f0cf603939a3981f235f69b4750c02

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

require 'yajl' unless defined?(Yajl)

module MultiJson
  module Engines
    class Yajl
      def self.decode(string, options = {})
        ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string)
      end
      
      def self.encode(object)
        ::Yajl::Encoder.new.encode(object)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multi_json-0.0.2 lib/multi_json/engines/yajl.rb