title: PhantomJS getJSON unable to get a response
body: <p>I'm trying to use $.getJSON inside PhantomJS but impossible to get the result of it. Any solution? I can not simply load or includeJs directly. The page has to be called from the same domain.</p>
  
  <p>So I want to open a page and do the call from there.</p>
  
  <p>Here is my current code which is not working:</p>
  
  <pre><code>var jqueryUrl = "https://code.jquery.com/jquery-latest.min.js";
  
  page.open("http://www.example.com/", function(status) {
      if (status === "success") {
              page.includeJs(jqueryUrl, function() {
              var result = page.evaluate(function() {
                  $.getJSON('http://www.example.com/someJson', function(data) {
                      return data;
                  });
              });
              console.log(result);
              phantom.exit();
          });
      } else {
          phantom.exit(1);
      }
  });
  </code></pre>
  
  <p>Thanks for any help!</p>