def METHOD_NAME(key_list, lines):
    """
    Pretty-print the given two-dimensional array's lines into a JSON
    object list. The key_list acts as the "header" of the table, specifying the
    keys to use in the resulting object.
    This function expects values to be the same number as the length of
    key_list, and that the order of values in a line corresponds to the order
    of keys.
    """
    res = []
    for line in lines:
        res.append({key: value for (key, value) in zip(key_list, line)})
    return res