title: How do I get JSON data from an external file in jQuery and ensure the data is loaded before the remainder of the script
body: <p>I'm attempting to extract a JSON object from a .json file (hosted locally to the script) and saving the data as a variable. Currently, I'm using jQuery's <code>$.getJson()</code> function, which works fine, I just want to ensure that the JSON data is loaded before finishing the rest of the script as some functions rely on it.</p>
  <p>Any ideas?</p>