Sha256: 03a8a719d08e31a2b2aa1a24100eb937795837ae719c15ea4c3a093d6bee02c8

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
message_queue-0.0.4 lib/message_queue/serializers/json.rb
message_queue-0.0.3 lib/message_queue/serializers/json.rb