def serialize(self):
data = super(Note, self).serialize()<EOL>data.update({<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:object>": {<EOL>"<STR_LIT>": self.object_type,<EOL>"<STR_LIT:content>": self.content,<EOL>}<EOL>})<EOL>if self.display_name:<EOL><INDENT>data["<STR_LIT:object>"]["<STR_LIT>"] = self.display_name<EOL><DEDENT>return data<EOL>
Converts the post to something compatible with `json.dumps`