var activeView = "";

$.get("http://127.0.0.1:1338/views", function (views) {
	$('.nav-sidebar').html("");
	
	views.forEach(function(view){
		$(".nav-sidebar").append(`<li data-view="` + view.view + `"><a href="#" onclick="loadData('` + view.view + `')">` + view.name + `</a></li>`);
	});
	
	loadData(views[0].view);
});

function loadData(view) {
	if(!view)
		view = activeView
	else
		activeView = view;
	
	$("li[data-view]").removeClass("active");
	$("li[data-view=" + view + "]").addClass("active");
	
	$.get("http://127.0.0.1:1338/data/" + view, function (views) {
		views.forEach(function (view) {
			var table = `<div class="table-responsive"><table class="table table-striped"><thead><tr>`;

			view.headers.forEach(function (header) {
				table += "<th>" + header.text + "</th>";
			});

			table += `</tr></thead><tbody>`;

			view.data.forEach(function (datum) {
				table += `<tr>`;

				view.headers.forEach(function (header) {
					table += "<td>" + getDescendantProp(datum, header.value) + "</td>";
				});

				table += `</tr>`;
			});

			table += `</tbody></table></div>`

			$(".main").html(table);
			
			 $('table').DataTable({
				"order": []
			 });
		});
	});
}

/* http://stackoverflow.com/a/8052100 */
function getDescendantProp(obj, desc) {
    var arr = desc.split(".");
    while(arr.length && (obj = obj[arr.shift()]));
    return obj;
}
@@ -943,25 +943,17 @@
 %09%09%09%09
-table += %22%3Ctd%3E%22 +
+var val =
  get
@@ -987,16 +987,63 @@
 r.value)
+;%0A%09%09%09%09%09%0A%09%09%09%09%09table += %22%3Ctd%3E%22 + renderTypes(val)
  + %22%3C/td
@@ -1399,8 +1399,246 @@
 n obj;%0A%7D
+%0A%0A/* http://stackoverflow.com/questions/11832914/round-to-at-most-2-decimal-places */%0Afunction renderTypes(num) %7B%0A%09const numCast = +(Math.round(num + %22e+2%22)  + %22e-2%22);%0A%09%0A%09if(!Number.isNaN(numCast))%0A%09%09return numCast;%0A%09else%0A%09%09return num;%0A%7D%0A

Update index.js