Cross domain JSON request - ignoring invalid first few chars
Hello everyone.
I appreciate this is a bit of a weird question but here goes.
I'm using JQuery to make AJAX calls to JSON data files on another domain than mine, which I gather you can do with
dataType: "jsonp". However my problem is that the JSON source is preceded with
for (;;); which means it doesn't validate as valid JSON. Past that point, it's all valid. Therefore, when I try to call it with JQuery Firebug reports an "invalid label" error which I'm sure is caused by this.
So is there any way I can ignore the first 9 characters of the response and then parse the rest as the valid JSON that it is? I don't have control of the other server which is why I can't just remove it in the first place.
Any help would be greatly appreciated. :)