this is the updated version of the file to convert data to json format. the old file t_csv_new is obsolete