Converting a flat file which contains phenotype data to a JSON structure.