I need to convert a RSS feed from another domain and turn it into json. In order to circumvent cross-domain warnings, I'm parsing the RSS feed server side using this PHP proxy script.
- but somehow the response is in one long string.
I would like to use ajax like this:
var url = "http://www.mywebsite.net/simple-proxy.php?url=http://feeds.bbci.co.uk/news/rss.xml?edition=int&callback=feed";
$.ajax({
dataType: "jsonp",
url: url,
success: function(data) {
console.log(data);
}
});
- but somehow the response is in one long string. How do I get the response turned into a json array with nodes, and so on?