Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Investigating into blogger JSON feed.



Budding my newest Json-based widgets was done with loads of trial and error, lacking a good understanding of the JSON-format and lacking knowledge of how to admission the feed and retrieve the data. So yesterday I did some investigate and developed a small javascript program to examine the feeds. It is tech material, so don't be anxious if you don't understand it.


I establish some documentation on the blogger JSON feed format, based on Google Calendar. A little later I discovered a simple tutorial on how to browse through JSON objects.

I tainted this into a recursive javascript function, that browses the complete SON-feed-tree, and displays all keys and all values. You can use is to research any J SON-feed.

Create a simple HTML-page, using the following code.

function listkeys(feedobj,depth) {
for (key in feedobj) {
for (var i=0; i
document.write(key+' = '+feedobj[key]+'
');
listkeys(feedobj[key],depth+1);}
}

function showfeedcontent(json) {
listkeys(json,0);
}
JSON FEED PARSER



In this code restore the blognucleus.comfeed reference to your own blog's feed.


Now open the HTML-page in your browser and the complete feed will be displayed.


This post first appeared on Blog's Nucleus, please read the originial post: here

Share the post

Investigating into blogger JSON feed.

×

Subscribe to Blog's Nucleus

Get updates delivered right to your inbox!

Thank you for your subscription

×