var albums_list = []; for(var i=0; i<r.response; i++) { albums_list.push([r.response[i].aid, r.response[i].title]); }