<table>
<thead>
<tr>
<th>ID</th>
<th>Object1</th>
<th>Object2</th>
</tr>
</thead>
<tbody>
<tr>
<td id-object='ID'></td>
<td object-name="object1">3442</td>
<td object-name="object2">10045</td>
</tr>
</tbody>
</table>
const idAttr = 'id-object';
const propAttr = 'object-name';
const data = Array
.from(document.querySelectorAll('table tbody tr'))
.reduce((table, tr) => (
table[tr.querySelector(`[${idAttr}]`).getAttribute(idAttr)] = Array
.from(tr.querySelectorAll(`[${propAttr}]`))
.reduce((row, td) => (row[td.getAttribute(propAttr)] = td.innerText, row), {}),
table
), {});