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 trialJorge Guzman
Courses Plus Student 21,390 PointsWebsites 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
39,199 PointsAs in most cases when you want to "find more websites" of a given type ...
Use google
Jorge Guzman
Courses Plus Student 21,390 PointsThanks 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
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.
James Barnett
39,199 PointsYou can probably use Yahoo Pipes to convert from RSS to JSON
see also: http://snook.ca/archives/javascript/yahoo-pipes-xml-json
Jorge Guzman
Courses Plus Student 21,390 PointsThank man, I will check.
Jorge Guzman
Courses Plus Student 21,390 PointsMany 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
39,199 PointsNo idea, I haven't done any iOS programming.
Jorge Guzman
Courses Plus Student 21,390 Pointsok no problem, many thanks for your tips. Have a nice day!.