1
I’m trying to pull data from a URL
returning JSON
to use on my page. Apparently I am able to bring the data, but for some reason I get the following error in the browser console:
"Uncaught Syntaxerror: Unexpected token :".
For now, the only thing I’m doing is bringing in the dice and playing log
of the island by jquery
. the code I’m using is as follows::
function logResults(json){
console.log(json);
}
$.ajax({
url: "https://blockchain.info/pt/ticker",
dataType: "jsonp",
jsonpCallback: "logResults"
});
And then he managed to solve?
– Tiago S