How to pass a nested object as parameter in webcomponent in htl.
<sly data-sly-use.helper="com.adobe.cq.wcm.core.components.models.Component"
data-sly-use.component="com.mkovacek.adobe.aem.core.models.CartModel"
data-sly-use.templates="core/wcm/components/commons/v1/templates.html"
data-sly-test.showPlaceholder="${!component.name}"
></sly>
<sly data-sly-test="${!showPlaceholder}">
<test-cart
id="${helper.id}"
name="${component.name}"
type="${component.type}"
price="${component.price}"
buttons="${component.buttons}">
</test-cart>
</sly>this is the HTL code where, test-cart is a web component, and in the html, this test cart has options to render multiple buttons. So buttons variable above is a array of json objects. in html react side button shows parse error, something is wrong with this data and I am not sure what and how to pass an array of objects.