Get JSON with the jQuery getJSON Method 1

Tell us what’s happening:

Your code so far

<script>
  $(document).ready(function() {

    $("#getMessage").on("click", function(){
      // Only change code below this line.
      
      $.getJSON("/json/cats.json", function(json) {
  $(".message").html(JSON.stringify(json));
});
      
      // Only change code above this line.
    });

  });
</script>

<div class="container-fluid">
  <div class = "row text-center">
    <h2>Cat Photo Finder</h2>
  </div>
  <div class = "row text-center">
    <div class = "col-xs-12 well message">
      The message will go here
    </div>
  </div>
  <div class = "row text-center">
    <div class = "col-xs-12">
      <button id = "getMessage" class = "btn btn-primary">
        Get Message
      </button>
    </div>
  </div>
</div>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.0.12195 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/get-json-with-the-jquery-getjson-method

Was there something specific you needed help with? Are you reporting a bug?