Forum Discussion
manasab
7 months agoAce
Hello SheryBulos ,
<#assign data=asset.get("/html/assets/test.json") >
${data}
<script>
var data = "${data}";
fetch(data).then(res => res.json()).then(data => console.log(data, "data"))
</script>
Obtaining data from a JSON asset file and sharing the screenshot for your reference. Hope this information may help with your requirement.
Related Content
- 10 years ago
- 4 years ago