var table = document.getElementById('table');
var jsonArr = [];
for(var i =0,row;row = table.rows[i];i++){
var col = row.cells;
var jsonObj = {
company : col[0].innerHTML,
contact : col[1].innerHTML,
country : col[2].innerHTML
}
jsonArr.push(jsonObj);
}
console.log(jsonArr);