I have a CSV file which has 10 columns and multiple rows. I want to store each row in a JSON object. For example the file would look like below :
Name, Age, Address..........and other columns
ABCD, 23 , HOME.............and other columns
So I want it to be stored in a JSON object as {"Name":"ABC" ,"Age":"23", "Address":"HOME"}
Now, since there will be multiple rows, how do I create an array of JSON objects and store each row in an object? How do I retrieve or print each row too from the JSON objects?
Thanks a lot.