var a = ['id', 'user_id', 'result', 'date_time']
var trHTML = '';
$.each(response, function (i, x) {
trHTML += '<tr><td>' + x['id'] + '</td><td>' + x['user_id'] + '</td><td>' + x['result'] + '</td><td>'+x['date_time']+'</td></tr>';
});
$('table').append(trHTML);
var response = [{
id: 1,
user_id: 2,
result: 'test',
date_time: '123'
}],
trHTML = '';
$.each(response, function (i, x) {
trHTML += '<tr>'
for (res in x) {
trHTML += '<td>' + x[res] + '</td>';
}
trHTML += '</tr>';
});
$('table').append(trHTML);