Templating configuration of rules via JSON file