title: $.getJSON not working with simple PHP Script
body: <p>The JS doesn't work with the PHP script. I get no response. </p>
  
  <p>Here's the PHP script:</p>
  
  <pre><code>&lt;?php
  
  $a = array('data' =&gt; 'Hello');
  echo json_encode($a);
  
  
  ?&gt;
  </code></pre>
  
  <p>Here is the JQuery Script:  </p>
  
  <pre><code>function getCityAndState(data, location)
  {
      var jsonString = {"zipCode":  data};
      var outR = outputResults    
      alert("JSON String:" + jsonString.zipCode); 
      if (location === "living")
      {   
          $("#livingCityField").val("");
          $("#livingStateField").val("");
          alert("Inside getCityAndState: " + location);
          //$.get("testfile.php", 
          //  {zipCode:  data}, 
          //  outR,
          //  'text'
  
  
          //  );
  
          $.getJSON("testfile.php",function(d) {
                  alert("JSON Data: " + d.data);
                  });
  
  
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p><code>alert("Inside getCityAndState: " + location);</code> does execute as expected but otherwise nothing happens. There is no exception thrown, no error message, nothing. It doesn't return any data at all.</p>
  
  <p>I'm using Aptana 2 as an IDE, in case that makes a difference.</p>