title: jSON & jQuery definitions
body: <p>I'm having a problem developing a script based on a user-data API.</p>
  
  <p>I have created a function <code>getUserData(username, what);</code> and what it does is this;</p>
  
  <pre><code>var lasuniAPI = "script/data.php";
  $.getJSON(lasuniAPI, { p: 'userdata', data: username}, function(data){
      return data.userdata.what;
  });
  </code></pre>
  
  <p>I want 'what' to be defined but sadly I'm getting undefined returns.</p>