title: How can I return a variable from a $.getJSON function
body: <p>I want to return <code>StudentId</code> to use elsewhere outside of the <em>scope</em> of the <code>$.getJSON()</code></p>
  
  <pre><code>j.getJSON(url, data, function(result)
  {
      var studentId = result.Something;
  });
  
  //use studentId here
  </code></pre>
  
  <p>I would imagine this has to do with scoping, but it doesn't seem to work the same way <em>c#</em> does</p>