title: Can't Figure out Why JSON / JSONP Isn't Working
body: <p>I have this PHP code:</p>
  
  <p>JSON.php</p>
  
  <pre><code>&lt;?php
      $array = array('items' =&gt; 38);
      $JSONItems = json_encode($array); 
      return $JSONItems;
  ?&gt;
  </code></pre>
  
  <p>Items.html</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $.getJSON("http://domain.com/JSON.php?callback=?", 
          function(data){ alert(data.items) }
      );
  &lt;/script&gt;
  </code></pre>
  
  <p>When Items.html is displayed no alert is fired, and nothing happens.  (No Console Errors Or Anything)</p>
  
  <p>Any idea what I'm doing wrong?</p>