One simple way of doing this is:
var data = [{_x000D_
"Total": 34,_x000D_
"Version": "1.0.4",_x000D_
"Office": "New York"_x000D_
}, {_x000D_
"Total": 67,_x000D_
"Version": "1.1.0",_x000D_
"Office": "Paris"_x000D_
}];_x000D_
_x000D_
drawTable(data);_x000D_
_x000D_
function drawTable(data) {_x000D_
_x000D_
// Get Table headers and print_x000D_
var head = $("<tr />")_x000D_
$("#DataTable").append(head);_x000D_
for (var j = 0; j < Object.keys(data[0]).length; j++) {_x000D_
head.append($("<th>" + Object.keys(data[0])[j] + "</th>"));_x000D_
}_x000D_
_x000D_
// Print the content of rows in DataTable_x000D_
for (var i = 0; i < data.length; i++) {_x000D_
drawRow(data[i]);_x000D_
}_x000D_
_x000D_
}_x000D_
_x000D_
function drawRow(rowData) {_x000D_
var row = $("<tr />")_x000D_
$("#DataTable").append(row);_x000D_
row.append($("<td>" + rowData["Total"] + "</td>"));_x000D_
row.append($("<td>" + rowData["Version"] + "</td>"));_x000D_
row.append($("<td>" + rowData["Office"] + "</td>"));_x000D_
}
_x000D_
table {_x000D_
border: 1px solid #666;_x000D_
width: 100%;_x000D_
text-align: center;_x000D_
}_x000D_
_x000D_
th {_x000D_
background: #f8f8f8;_x000D_
font-weight: bold;_x000D_
padding: 2px;_x000D_
}
_x000D_
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>_x000D_
<table id="DataTable"></table>
_x000D_