View Blogger JSON Feeds in Human readable Format |
View Blogger JSON Feeds in Human readable Format Posted: 07 Oct 2015 06:08 AM PDT For web technologies like "Google Blogger blogs" also known as "blogspot blogs", a flexible medium for transporting data from one platform to another is mandatory. For this purpose blogger blogs uses XML to serve Feeds in Atom/RSS formats as a flexible source of data transport and data sharing between third party Content Management systems like Wordpress. With the introduction of JSON in Blogger Data API, it has now become even faster to fetch data and interchange it between blogspot server and browser. Since the default XML and JSON files are compressed in size and all data is presented without indentation in a single line, it becomes difficult to understand the Parent/child relationship of data and view the structure properly. In this part of the tutorial series you will learn how to view Blogspot JSON Feeds and XML Feeds in a human friendly format with clear indentation and tree structure. What you will learn today is a serious Post Mortem about blogspot blogs! Note: Click the Button below to see full list of topics under discussion. Topics List Convert JSON Strings to a Friendly Readable FormatFollow these steps to convert your JSON feed into a tree structure. 1 Paste your Blog Feed JSON URL in browser
Note: Replace the domain name with yours 2 Copy all the code inside the browser Tip: Press Ctrl + A followed by Ctrl + C to select and copy all data
3 Next Visit JSON Viewer and paste your code inside the TEXT tab as shown below 4 Finally switch to VIEWER tab, You will see a neat and clean representation of your JSON feed Objects and Arrays in a tree structure format.
For example if you wish to find the total number of comments posted on your most recent post, its author name, Post title, Post publishing date and so on then simply click/collapse the starting object inside the entry array i.e. { } 0 Note:
Where,
In my next post, you will learn in detail on how to parse JSON using JavaScript to fetch data form all these Objects and Array nodes. View Blogger XML Feeds in Human-Readable FormatNote: Although our Tutorial series focuses mainly on how to fetch data from JSON feeds, we are also giving you information regarding viewing XML feed data just for the sake of learning. You can skip this part if you wish.First you need to download any freeware XML viewer software available online. I recommend "XML Viewer" or "XML explorer". In my case I am using XML explorer. Once you have installed this lightweight software, you need to follow these steps: 1 Visit your blog and press "Ctrl + U" 2 You will now be able to see your source file. Search for this
3 Click the XML Feed link which looks similar to this one
4 Next copy all the raw XML Atom Feed code that you see on screen 5 Now paste it inside your XML viewer software. If you are using XML Explorer, select "New from Clipboard" option and all the code will be auto paste inside the software and converted into a readable format.
XML looks just like HTML where all data is enclosed inside custom tags.
Where:
XML feeds play a major role when you migrate your Blog to a non-blogger platform or when you update your readers with newsletters through Feed aggregators. All your Post data and comments info is included inside that XML import file. Have Questions?I hope you enjoyed this interesting post mortem of blogspot blogs where you get a clear idea of how data is organized in such content management systems through XML and JSON feeds. In our next parts, we will be covering the coding part and discussing delicious ways to parse JSON in JS. Let me know if you need any help in better understanding any concept covered in last two parts of this longest tutorial series shared first time on web. Have great time learning and experimenting buddies. Peace and blessings be upon you all! :) |
You are subscribed to email updates from My Blogger Tricks. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
0 comments:
Post a Comment