var str = '<select>'; for (var i in lang) { var s = lang[i], obj = s[0], n = obj['ru'], c = obj['code']; str +='<option value="'+ c +'">'+ n +'</option>'; } str += '</select>'; document.write (str);