After converting a CSV to JSON, I have data that looks like this:
[["Year","Make","Model","Description","Price"],["1997","Ford","E350","ac, abs, moon","3000.00"],["1999","Chevy","Venture \"Extended Edition\"","","4900.00"],["1999","Chevy","Venture \"Extended Edition, Very Large\"","","5000.00"],["1996","Jeep","Grand Cherokee","MUST SELL!\nair, moon roof, loaded","4799.00"]]
I want to use Handlebars.js to template this data, but I'm familiar with using it when the json structure is different:
[{"data" : "data1"},{.....}]
When attempting to access the values in my given json format using Handlebars, like this:
{{#each this}}
<li>{{0}}</li>
{{/each}}
I encountered an error in the console:
Uncaught Error: Parse error on line 3:
...} <li>{{0}}</li>
----------------------^
Expecting 'ID', 'DATA', got 'NUMBER'
Is the issue with my template syntax or the json data itself? How can I resolve this problem?