how to define and populate the values for an object at each iterated individual array
I'm working on AJO API Triggered Campaigns, well I'm trying to write a logic populate the personalization values from API JSON Payload on a HTML Template using below logic and json paylaod!
Question: help me how to define and populate the value for "name" form below json payload at each iterated individual array level for an example
if countProducts = 1 then i want to print the value of attribute (name) at array level[1] with in the html template in this case the level[1] name value = "Super Socks"
AJO logic:
Results:(populated using https://experienceleague.adobe.com/en/apps/journey-optimizer/ajo-personalization?lang=en )
- Product: Super Socks
- Product: Cool Hat
- Product: Cozy Scarf
- Product: