title: How to read a remote JSON file with jQuery.getJSON()?
body: <p>I'm new with Javascript and I would like to read a remote JSON file with <code>getJSON()</code>. For some reason my function returns a syntax error <code>Unexpected token )</code> but I can't figure out what is wrong. </p>
  
  <p>This is what I do, am'I missing something ?</p>
  
  <pre><code>var url = "http://mysafeinfo.com/api/data?list=englishmonarchs&amp;format=json";
  
  $.getJSON(url, function (json) {
  
      console.log(json);
      alert(json);
  
  )};
  </code></pre>
  
  <p><a href="https://jsfiddle.net/aaqm4r2v/2/" rel="nofollow noreferrer">Link to the JSFiddle</a></p>