Added to locus.to_json().