import csv


def read_csv_as_json(fname: str):
    """
    Read CSV file as JSON format, i.e., dict type in Python
    """
    with open(fname, 'r') as f:
        reader = csv.reader(f)
        rows = [row for row in reader]
        fields = rows[0]
        n = len(fields)
        rows.pop(0)
        return [{fields[i]: row[i] for i in range(n)} for row in rows]