I read a couple of posts to solve the $ undefined error, replacing the <src> link to include the jquery file.
I would appreciate any assistance..
<!DOCTYPE html>
<html>
<head>
<title>Test - Reading data in JSON format</title>
<script type="text/javascript">
function read_json() {
$.getJSON("/data2.json", function(data) {
alert("My data: " + data["mydata"]);
$.each(data["prime"], function(idx,prime) {
alert("Prime number: " + prime);
});
});
}
</script>
</head>
<body onload="read_json();">
</body>
</html>