i’m trying to include a JSON file generated by YQL via jQuery following this tutorial and get the following error:
Uncaught SyntaxError: Unexpected token ;
This is the code I currently try to use:
$.ajax({
type: "GET",
url: "http://pipes.yahoo.com/pipes/pipe.run?_id=57aa32bf3481c8dca0c07afcf9b9dc29&_render=json",
async: false,
beforeSend: function(x) {
if(x && x.overrideMimeType) {
x.overrideMimeType("application/j-son;charset=UTF-8");
}
},
dataType: "json",
success: function(data){
alert("success");
}
});
I’m not as comfortable with JSON/JQuery/JS as I would like, but it’s not really my primary field of expertise 😉 . I’d really appreciate any help given.
Is this your problem?
instead of