<#ftl output_format="JSON"> <#assign objectIndex = 1> [ <#list objects as object> <@reusednRule templateHelper=templateHelper newObjectMetadata=recipeMetadata rule=object recipeObjectId=recipeObjectId objectIndex=objectIndex /> <#if object?has_next> , <#assign objectIndex = objectIndex + 1> ] <#-- The macro for generating view and template metadata for an existing Rule --> <#macro reusednRule templateHelper newObjectMetadata rule recipeObjectId objectIndex> { <#-- recipe section --> "objectStatus": "EXISTING", "templateObjectId": "${recipeObjectId}-${objectIndex?c}", "objectIndex": ${objectIndex?c}, <#-- bindings section --> "uuid": "${rule.getUuid()}", <#-- i18n section --> "name": "${rule.getName()?json_string}", "description": "${rule.getDescription()?json_string}" }