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