User839733648 posted
Hi zhyanadil.it@gmail.com,
According to your description and code, I've made a sample on my side.
I've just simulated the response jsondata.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script>
$(function () {
var jsonData = '[{"id":"1","name":"Helen","age":"23"},{"id":"2","name":"Bob","age":"25"},{ "id":"3", "name":"Timmy", "age":"26"}]';
response = $.parseJSON(jsonData);
var table = '<table id="mytable" class="table table - striped table - bordered table - hover" style="width: 500px"><tr><th>ID</th><th>Name</th><th>Age</th></tr ></table>';
$('body').append(table);
var trHTML = '';
$.each(response, function (i, item) {
trHTML += '<tr><td>' + item.id + '</td><td>' + item.name + '</td><td>' + item.age + '</td></tr>';
});
$('#mytable').append(trHTML);
})
</script>
</head>
<body>
</body>
</html>
result:

If you want to use ajax, you could write like below.
$.ajax({
url: '/',
type: 'POST',
data: {
json: jsonData
},
success: function (response) {
var trHTML = '';
$.each(response, function (i, item) {
trHTML += '<tr><td>' + item.id + '</td><td>' + item.name + '</td><td>' + item.age + '</td></tr>';
});
$('#mytable').append(trHTML);
}
});
Best Regards,
Jenifer