I'm trying to load in JSON from the URL below :
https://acs.leagueoflegends.com/v1/stats/game/TRLH3/1001090170/timeline?gameHash=a23ccbe7928a63a3
My code looks like this :
var baseUrl = "https://acs.leagueoflegends.com/v1/stats/game/TRLH3/1001440043/timeline?gameHash=4725b07311676885";
var json = $.getJSON(baseUrl, function(data){
});
$("#output").text(JSON.stringify(json));
And my output reads this :
{"readyState":1}
Jsfiddle:
https://jsfiddle.net/6Lwjpjmo/
EDIT : Apparently it is not possible to retrieve the JSON from that URL because of 2 reasons:
Access-Control-Allow-Origin:null
- JSON is called via Proxy Requeste to load the JSON in the body.
I already can retrieve the JSON server-side via .NET but need to pass on certain variables to the client-side to manipulate in jQuery. How do I go about this?