Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Blog Reader iPhone App Getting Data from the Web Downloading and Parsing JSON Data

JSONVIEW

I am trying to use jsonview but am not quite sure how it works. Is there certain webpages it will work on only? I am looking to trying to do a blog viewer similar to the treehouse one but on a different blog site. Is it possible to use json viewer on this page? http://www.sea-angling-ireland.org/forum/blog.php?mode=recent_blogs

Any tips and advice are welcome. Even pages i can practice on. Thanks.

2 Answers

No, http://www.sea-angling-ireland.org/forum/blog.php?mode=recent_blogs does not show JSON data (it shows HTML), so JSONView will not pick it up. I am not too familiar with phpBB, the forum software you are using. But generally, most CMSs or bulletin board scripts will either already come with a JSON API or have a plug-in that you can install to make your content availabe in JSON format. I suggest you check the phpBB documentation / support section to see if phpBB supports JSON feeds out of the box: https://www.phpbb.com/support/documentation/3.0/

Just to make this clear: JSONView will not magically transform HTML into JSON for you. JSONView only helps making (existing) JSON data more human readable.

Thanks Roger, I was interested in practicing on a few more blogs. I just finished the IOS7 project of creating a blog reading app using http://blog.teamtreehouse.com/api/get_recent_summary/ as the page i was getting the JSON data. Do i need /api in the url of a blog to get the JSON data from it? Amit Bijlani can you give me some insight on pages that i can access json data like in the project to practice with?