Updated the structure of template_rules JSON object