<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __marshal_matches(matched):
 """Convert matches to JSON format. :param matched: a list of matched identities :returns json_matches: a list of matches in JSON format """

        json_matches = []
        for m in matched:
            identities = [i.uuid for i in m]

            if len(identities) == 1:
                continue

            json_match = {
                'identities': identities,
                'processed': False
            }
            json_matches.append(json_match)

        return json_matches