title: correct JSONP Response
body: <p>I'm trying locally to get JSONP to give me a correct response and pass it into my callback function jsonp_callback. Using code from: <a href="https://stackoverflow.com/questions/9519209/how-do-i-set-up-jsonp">How do I set up JSONP?</a></p>
  
  <pre><code>header('content-type: application/json; charset=utf-8');
  $data = array ('a'=&gt;1,'b'=&gt;2,'c'=&gt;3,'d'=&gt;4,'e'=&gt;5); 
  echo $_GET['jsonpCallback'] . '('.json_encode($data).')';
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$.ajax({
      url: 'jsonp-response.php', 
      dataType:'jsonp',
      jsonp: 'jsonp_callback',
      success: function (r){
          console.log(r);
      }
  });
  
  
  function jsonp_callback (r){
      console.log('jsonp_callback:',r);
  }
  </code></pre>
  
  <p>Sofar I'm getting a Response which looks like:</p>
  
  <pre><code>jQuery1102035954900085926056_1381230228656({"a":1,"b":2,"c":3,"d":4,"e":5})
  </code></pre>
  
  <p>Looking at the first answer from <a href="https://stackoverflow.com/questions/4373419/testing-a-static-jsonp-response">Testing a static jsonp response</a> I think I'm doing it correctly but I'm not sure why jQuery gives me a unique string.</p>
  
  <p>How would I make my response look like this ?</p>
  
  <pre><code>jsonp_callback({"a":1,"b":2,"c":3,"d":4,"e":5})
  </code></pre>