title: $.getJSON not returning any data
body: <p>I am trying to test $.getJSON() on localhost, but no data is returned.</p>
  
  <p>Please correct me if I am wrong.</p>
  
  <p><strong>PHP:</strong>
      
  
  <pre><code>$person['name'] = !empty($_GET['name']) ? $_GET['name'] : 'name';
  $person['age'] = !empty($_GET['age']) ? $_GET['age'] : '00';
  
  return json_encode($person);
  ?&gt;
  </code></pre>
  
  <p><strong>HTML / jQuery:</strong></p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          $('.start').click(function(){
          $.getJSON('http://localhost/ewoe/server.php?name=natasha&amp;age=22', alert(data.name));
          })
      }); //end ready
  &lt;/script&gt;
  </code></pre>
  
  <p>All files can be found in the same directory. <br>
  Although, the error I get after hitting the .start button is <code>'data not set'</code>.</p>