HTL tags issue
<sly data-sly-use.product="**.**.**.**.**.models.product">
<script type="application/ld+json"> {
"@context": "http://schema.org",
"@type": "Product",
"name": "${product.name }",
<sly data-sly-test="${product.getReviewSummary != 0 && product.getReviewCount != 0}">
"aggregateRating": {
"ratingValue": "${product.getReviewSummary }",
"reviewCount": "${product.getReviewCount }"
}</sly>
}
</script>
</sly>
output:
<script type="application/ld+json"> {
"@context": "http://schema.org",
"@type": "Product",
"name": "jean",
<sly data-sly-test="">
"aggregateRating": {
"ratingValue": "4.0",
"reviewCount": "2"
}
</sly>
}
</script>
issue is in output <sly data-sly-test=""> tag is getting in json how to avoid it.



