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

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Websites with JSON format

Hi guys,

In the videos for making the BlogReader, it is given to us a website which the format is already JSON (http://blog.teamtreehouse.com/api/get_recent_summary/).

But how can I find more websites that use this format?, or, how can I transform any website or blog into a JSON format?.

Many thanks in advance for your comments,

Jorge

5 Answers

James Barnett
James Barnett
39,199 Points

As in most cases when you want to "find more websites" of a given type ...

Use google :wink:

http://google.com/search?q=filetype:json

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Thanks James,

I looked around with this tip you gave and I found that most of the blogs I want to use for my blog reader do not use the JSON format. Do you know how can I call websites of any format for my blog reader app?.

James Barnett
James Barnett
39,199 Points

> Do you know how can I call websites of any format for my blog reader app?.

There's no real clean way to do it. But since RSS is much more popular for blogs. So you could convert an RSS feed which is actually just XML into JSON and then consume that.

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Many thanks James, it looks that could work, but unfortunately for me this is too advanced, I am just starting with programming iOS and my background is not in technology. Do you think is there any option that would be easier for building a blog reader in iOS?.

Cheers.

James Barnett
James Barnett
39,199 Points

No idea, I haven't done any iOS programming.

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

ok no problem, many thanks for your tips. Have a nice day!.