Heres my ajax request
$.ajax({
url: req_url,
contentType: 'application/json',
type: 'GET',
dataType:'jsonp',
success: function(data){
console.log(data);
},
})
and the error
?id=BLC&format=json&starttime=2016-09-13&callback=jQuery3100840…
1473881883047&=147388…:1 Uncaught SyntaxError: Unexpected token :
to remove all the jquery cached appended on the end I used this code
$.ajax({
url: req_url,
contentType: 'application/json',
type: 'GET',
dataType:'jsonp',
jsonp: false,
jsonpCallback: 'callback',
cache: true,
success: function(data){
console.log(data);
},
})
and the error here is the same
?id=BRD&format=json&starttime=2016-09-13:1 Uncaught SyntaxError: Unexpected token :