Sha256: a4bd91f8c9b2a6757edc32962c826a5c906fde3f7cf76d5c3a9cd05a59282e70

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

require "multi_json"

module MessageQueue
  module Serializers
    class Json < Serializer
      def load(string, options = {})
        ::MultiJson.load(string, options)
      end

      def dump(object, options = {})
        ::MultiJson.dump(object, options)
      end

      def content_type
        "application/json"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
message_queue-0.1.1 lib/message_queue/serializers/json.rb
message_queue-0.1.0 lib/message_queue/serializers/json.rb