Updated CleanDatasets so it reads json