Get a data-sly-list element as a jsonarray
How can we pass a list from HTL to a sling model?
I need a nested list to be converted into JsonArray format.
<div data-sly-list="${values}">
<h1>${item.title}</h1>
<p>${item.description}</p>
</div>
Now I want the same thing as a json string from ${values}:
[{"title":"test1", "description":"desc1"},{"title":"test2", "description":"desc2"}]
Any inputs would be helpful.
