code: def __marshal_matches(matched):
          
          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
docs: Convert matches to JSON format.
  
          :param matched: a list of matched identities
  
          :returns json_matches: a list of matches in JSON format