Got it working using this code from here:
$.ajax({
type: 'GET',
url: "http://i.cdn.turner.com/nba/nba/.element/media/2.0/teamsites/warriors/json/json-redesign-communitypartners.js?callback=?",
async: false,
jsonpCallback: 'saveDataCommunityPartners',
contentType: "application/json",
dataType: 'jsonp',
success: function(json) {
parseJSON(json); // pass to function to use for whatever
},
error: function(e) {
console.log(e.message);
}
});
Note that originally in the success function I tried to store the json in a variable called data like so: data = json;
, but ran into problems as this does not ensure that the json will have returned by the time data
could be accessed. See this question for more info on that end.