update toJson to properly handle "cause" and "instance_count" fields
update toJson to properly handle "cause" and "instance_count" fields

rfaulkner/databayes,rfaulkner/databayes,rfaulkner/databayes,rfaulkner/databayes,rfaulkner/databayes