title: Get returned value from function called by getJSON
body: <p>If <code>$.getJSON()</code> succeeds in getting the JSON data, then a function is called, as shown below. How do I catch the returned value <code>output</code>?</p>
  
  <pre><code>$.getJSON(url, function(data) {
       // Do stuff with data if succeeds in getting the data
       return output;
       }
  );
  </code></pre>