def get_individual(individual, ensembl_json):
    """Return a list with the genotypes of the individual."""

    genotypes = []

    for individual_genotype in ensembl_json["genotypes"]:
        if individual in individual_genotype["sample"]:
            genotypes.append(individual_genotype)

    return genotypes