def parse_json(desc, rows):
    """
    parse records to list, including record as dict
    :param desc: description of table, column name
    :param rows: input records
    :return: a list of dicts
    """
    if len(rows) == 1:
        results = {}
        row = rows[0]
        i = 0
        for u_desc in desc:
            results[u_desc[0]] = str(row[i])
            i += 1
        results = [results]
    else:
        results = []
        for row in rows:
            i = 0
            result = {}
            for u_desc in desc:
                result[u_desc[0]] = str(row[i])
                i += 1
            results.append(result)
    return results
