title: Angular JSONP calling WordPress JSON REST API
body: <p>I'm not entirely sure what's going on, as I'm still trying to figure cross domain javascript calls, but I'm calling some JSON from a WordPress site (that's using the WordPress JSON REST API plugin). Since it's coming from a local site (I'm working on a mobile app using Ionic/Angular), I've had some cross-domain access issues. So, I'm looking at using JSONP.</p>
  
  <p>I've successfully called and returned info, but I can't seem to do anything with the returned data.</p>
  
  <p>My call is as so:</p>
  
  <pre><code>$http.jsonp('http://heavymetalhamilton.ca/wp-json/hmh-api/shows?_jsonp&amp;callback=JSON_CALLBACK')
    .success(function(data) {
      console.log(data);
    });
  </code></pre>
  
  <p>However, nothing is being logged. I can see that the $http.jsonp call is returning data (I can see in developer tools and looks like this:</p>
  
  <pre><code>/**/([{"ID":30,"post_date":"2014-09-25 18:33:15","post_date_gmt":"2014-09-25 
  ...
  )
  </code></pre>
  
  <p>I see that the returning data has some packing around it, but I'm not sure how to process this data.</p>
  
  <p>Any help?</p>
  
  <p>EDIT: Have what's happening going on in a <a href="http://codepen.io/anon/pen/rvFHL" rel="nofollow">CodePen</a></p>