import csv


def parse_csv(csv_file_path):
    """ Parses a CSV file and generates a JSON (dict) array """
    json = []
    with open(csv_file_path, encoding='unicode-escape') as csv_file:
        csv_reader = csv.DictReader(csv_file)
        for row in csv_reader:
            json.append(row)
    # last two rows contain a repeat of keys and system info
    return json[:len(json)-2]