convert genotype to JSON representation