code: def from_csv(self, input_data):
          
          reformatted_data = []
          for (i,row) in enumerate(input_data):
              if i==0:
                  headers = row
              else:
                  data_row = {}
                  for (j,h) in enumerate(headers):
                      data_row.update({h : row[j]})
                  reformatted_data.append(data_row)
          return reformatted_data
docs: Reads csv format input data and converts to json.