code: def serialize(self, data):
          '''
          Serlialize the output based on the Accept header
          '''
          self.set_header('Content-Type', self.content_type)
  
          return self.dumper(dataf serialize(self, data):
          '''
          Serlialize the output based on the Accept header
          '''
          self.set_header('Content-Type', self.content_type)
  
          return self.dumper(data)
docs: Serlialize the output based on the Accept header