Has anyone come across YouTube's feeds API returning invlaid JavaScript over JSON-P, due to instances of \n
? Example:
It's wrapped in the call to the callback, as you'd expect for JSON-P, but breaks my code due to the line breaks. You would have thought YT would have catered for this.
There's no pertinent code to show in this question, as the code isn't the problem - it's the response that, when executed via the callback, causes the error.
Am I missing a param I can pass or something?
(Sidenote: I could load genuine XML over CORS instead but this doesn't work for IE8).
I think that your URL used is wrong. Should it not be "&alt=json" instead of "&format=json". Clicking your link returns XML instead of JSON.