var array = {
{id: 1, name: 'Frist'},
{id: 2, name: 'Second'},
{id: 3, name: 'Third'},
{id: 4, name: 'Fourth'},
{id: 5, name: 'Fifth'},
}
$.each(array, function(id, name){
html += '<button type="button" class="btn btn-default">'+name+'</button>';
});