code: def serialize(self):
          
          return json.dumps({
              "name": self.name,
              "ip": self.ip,
              "port": self.port
          }, sort_keys=True)
docs: Serializes the Peer data as a simple JSON map string.