hi i think this is what you want example, iam using Jquery
var JSONS = {
"Level": [{
"Product": [{
"ID": "ID1",
"Brand": "Brand2",
"Type": "Type3",
"Line": "Line4",
"Family": "Family5"
}],
"Location": [{
"City": "City1",
"State": "State2",
"Region": "Region3",
"Country": "Country4"
}],
"Time": [{
"Day": "Day1",
"Week": "Week2",
"Month": "Month3",
"Quarter": "Quarter4",
"Year": "Year5"
}]
}]
}
$(document).ready(function(){
$.each(JSONS.Level[0],function(key,val){
var currentSection = val[0];
var selectEle=$('<select id="'+key+'"></select>');
$.each(currentSection,function(k,va){
var op = "<option>"+va+"</option>";
selectEle.append(op);
});
$('#selectWrap').append(selectEle);
});
});