Create objects from local CSV

I’m able to access and read the CSV file and use it as the value to a text variable.
How can I make each row of the CSV a data object, with the first row as the object keys?
Eg:

a,b,c
1,“hello, world”,2
3,“2,5”

To
[
{
a: 1
b: “hello, world”
c: 2
},
{
a: 3
b: “”
c: “2,5”
}
]

Thanks