Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<table id="demo"></table>
<script>
$(document).ready(function () {
$.get("/json/json.txt", function(data, status){
var myObj = $.parseJSON(data);
for (i in myObj.records) {
$("#demo").html($("#demo").html() + "<tr><td>" + myObj.records[i].Tech +
"</td><td>" + myObj.records[i].Side + "</td></tr>");
}
});
});
</script>
</body>
</html>
// this json put into json.txt
{
"records": [
{
"Tech": "Angularjs",
"Side": "client"
},
{
"Tech": "Javascript",
"Side": "client"
},
{
"Tech": "PHP",
"Side": "server"
},
{
"Tech": "Node.js",
"Side": "server"
}
]
}
The most helpful JQUERY solutions