/Feed-To-JSON

jQuery extension to fetch a rss feed and return it as JSON object

Primary LanguageJavaScript

this simple jQuery plugin takes a rss feed and returns an object as JSON


SAMPLE USAGE:

//fetch and display an instagram rss feed for recent posts tagged 'tacos'
$.feedToJson({
	feed:'http://instagr.am/tags/tacos/feed/recent.rss',
	success: function(data){
		var $holder = $('<div class="instagramFeed"></div>');
		if(data.item.length > 1) data = data.item;
		$.each(data, function(){
			$holder.append('<img src="'+this.thumbnail.url +'" />');
		});
		$('body').append($holder);
	}
});