read the csv file and parse it to json format