pub fn write_rule_example_to(dir: &Path, name: &str, example: &RuleExample)
Write a merged rule example JSON file.