<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def serialize(self, cls, record):
 """ Serialize the record to JSON. cls unused in this implementation. '{"id": "1", "name": "Toto"}' """

        return json.dumps(record, cls=self.encoder)