I have a not so typical JSON here (https://github.com/conde-nast-international/cnid-tech-tests/blob/master/data/article.json) that I'm trying to display on a HTML page very simply inline, as normal looking text and a photos.
I'm embedding the JavaScript/jQuery in the HTML file but it doesn't seem to be working. Does anybody have some insight into what I'm doing wrong? Thank you in advance!
HTML (JavaScript):
<html>
<head>
  <meta charset="utf-8">
  <title>JSON Articles</title>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="article.json"></script>
</head>
<body>
  <div id="output" style="width:100px; text-align:center;">
  </div>
<script>
  $.ajax({
    url:"http://localhost:8888/json-article/article.json",
    method:"GET",
    success:function(data){
      for(var object in objectJson){
        $("#output").text("id="+object.id + "title"+object.title + "body"+object.body + "cover"+object.cover);
      }
    }
  });
 </script>
</body>
</html>
 
     
    