All you have to do is pass the data into the below function
function BuildTable(data) {
var jo = $.parseJSON(data);
for (i = 0; i < jo.employees.length; i++) {
var emp = jo.employees[i];
var row = "<table><tbody><tr><td>" + emp.firstName +"</td><td>"+ emp.lastName+"</td></tr></tbody></table>";
$('#resultTable').append(row);
}
}
And change your HTML as below.
<div>
<table id="resultTable">
<tr>
<th>FirstName</th>
<th>LastName</th>
</tr>
</table>
</div>
Or you can also create the above HTML (headers) dynamically