Started implementing toJSON function in ReadWriteCSV