Here is fiddle with code: jsfiddle
{
"status": {
"success": true,
"error": ""
},
"data": {
"item": [
{
"name": "Test 1",
"keywords": [
"[asdad,dasdas]"
],
"description": "xxzfrfa",
"test": 12.3,
"id": "584ab61344be2bd806ef276d"
},
{
"name": "My test 2",
"keywords": [
"[zx,zz]"
],
"description": "xz",
"test": 53,
"id": "584ab67b11b75c3a10fc1518"
}
]
}
}
...
<div id="product-container"></div>
<script id="product-template" type="text/x-handlebars-template">
{{#each data.item}}
<h2>{{brand}}</h2>
{{/each}}
</script>
What can I do to return data from JSON ?..it's not working now.. If anyone can help me. I've tried a lot of things.