I'm working with sportradar's API. However, I am getting this error "Uncaught SyntaxError: Unexpected token :" on the server response on line 1 in the schedule.json file when I run it. How do I resolve it to give me the data without using a plugin? You can see it in console.
function MLBSportsCall(){
$.ajax({
method: 'GET',
url: `https://api.sportradar.us/mlb-t6/games/2016/07/21/schedule.json?api_key=ehnp54takzjxcgebm4uqrma9`,
crossDomain: true,
dataType: 'json',
success: function(sportsData){
console.log(sportsData)
}
})
}
https://repl.it/@rbirch/Sports-API
I have been going through the following resources. http://api.jquery.com/jquery.ajax/
Thanks for your help.