Sightly - Accessing values in String[]
I've got a property as follows
items="[{"linkLabel":"Monkey"\,"anchor":"#monkey"}, "linkLabel":"Bear"\,"anchor":"#bear"},{"linkLabel":"Lion"\,"anchor":"#lion"}]"
When I loop through it in Sightly I see the values:
Sightly Code:
<div data-sly-list.itemList="${properties.items}">
<div>item: ${itemList}</div>
</div>
Output:
item: {"linkLabel":"Monkey","anchor":"#monkey"}
item: {"linkLabel":"Bear","anchor":"#bear"}
item: {"linkLabel":"Lion","anchor":"#lion"}
How can I get the values of 'linkLabel' and 'anchor' individually?
Thank you in advance for your help.
-Dean