in w3.js
{
"customers":[
{"CustomerName" : "Alfreds Futterkiste","City" : "Berlin","Country" : "Germany"},
{"CustomerName" : "Berglunds snabbköp","City" : "Luleå","Country" : "Sweden"},
]}
<select id="id01">
<option w3-repeat="customers">{{CustomerName}}</option>
</select>
<script>
w3.getHttpObject("customers.js", myFunction);
function myFunction(myObject) {
w3.displayObject("id01", myObject);
}
</script>
but my object not any name like(customers) and is:
[{"id":12,"name":"hamwrew"},{"id":13,"name":"mamad2"}]
how to show my object? in html or jsp page