Test JSON generation for variants