There are several ways to do this and depending on how your code might evolve in the future, some solutions might be slightly better than others or more flexible, but since I do not have such knowledge, here's an example on how you could do it in vanilla JS.
JSFIDDLE
var data = [
{"servername":"svrA"},
{"servername":"svrB"},
{"servername":"svrC"},
{"location":"locA"},
{"location":"locB"},
{"location":"locC"}
],
selects = {
servername: document.getElementById('servername'),
location: document.getElementById('location')
},
i = 0,
len = data.length,
item, prop, val;
for (; i < len; i++) {
prop = 'servername' in (item = data[i])? 'servername' : 'location';
val = item[prop];
selects[prop].add(new Option(val, val), null);
}
If you plan having the same kind of data structure for multiple select boxes, instead of hardcoding the selects object that references the select elements, you could also have pulled the select id dynamically using for in and also resolve the select reference using a generic approach.