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.

free gadgets for blogger

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.

<html>
<head>
<script type='text/javascript'>
function listkeys(feedobj,depth) {
for (key in feedobj) {
for (var i=0; i<depth; i++) document.write('- ');
document.write(key+' = '+feedobj[key]+'<br/>');
listkeys(feedobj[key],depth+1);}
}

function showfeedcontent(json) {
listkeys(json,0);
}</script>
</head>
<body>
JSON FEED PARSER
<br/><br/>
<script src="http://blognucleus.com/feeds/posts/default?alt=json-in-
script&callback=showfeedcontent"></script>
</body>
</html>

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


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

7 comments:

  1. i still dont understand until now.. what kind to use it more detailly.. Could you explain to me? :)

    ReplyDelete
  2. hey this is kim larry
    i am a academic technical writer at myassignmenthelp
    do you find the best personal statement writing help so contact us

    ReplyDelete
  3. If you wish to submit a compelling accounting academic paper, you have to make sure that you have answered all the questions accurately. Moreover, you have to see to it that all your statements are accurate. It is advisable that you pore through several solved samples on the Internet. You can easily check them out at the sample sections of the educational service providers.

    If you stick to the tips stated above, you will be able to present a quality assignment. If you face any issues, you should seek Accounting
    Assignment Help from professional experts.

    https://lockabee.com/read-blog/2962_6-crucial-tips-for-writing-a-grade-accounting-assignments.html

    ReplyDelete
  4. Here you can the best linkedin video downloader ? so here i am sharing best site where you can easily download linkedin video just copy and paste the url

    ReplyDelete
  5. There is no foul play or award of tenders on any other basis rather than on merit. assignment expert

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...

More From Webworld