class Hutch::Serializers::JSON

Public Class Methods

binary?() click to toggle source
# File lib/hutch/serializers/json.rb, line 16
def self.binary? ; false ; end
content_type() click to toggle source
# File lib/hutch/serializers/json.rb, line 18
def self.content_type ; 'application/json' ; end
decode(payload) click to toggle source
# File lib/hutch/serializers/json.rb, line 12
def self.decode(payload)
  ::MultiJson.load(payload).with_indifferent_access
end
encode(payload) click to toggle source
# File lib/hutch/serializers/json.rb, line 8
def self.encode(payload)
  ::MultiJson.dump(payload)
end