class Rack::Session::Cookie::Base64::ZipJSON

def decode(str)

def decode(str)
  return unless str
  ::JSON.parse(Zlib::Inflate.inflate(super(str)))
rescue
  nil
end

def encode(obj)

def encode(obj)
  super(Zlib::Deflate.deflate(::JSON.dump(obj)))
end