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!
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
Joseph Haddad16,246 Points
How do I create a URL that returns a JSON for an iPhone app that runs on Swift?
I'm currently developing an iPhone application in Swift that will display information from restaurants in my area (prices, promos, etc...). However I'm not sure if it's even feasible to pull information from about 20 different websites onto one app. Yo solve this problem, I want to create an URL. My goal is make a request to a URL to return a JSON file to my app so that the data may be parsed and displayed efficiently.
These are where my questions lie.
What are the steps I need to take to create a URL (costs, etc...)?
Would you recommend PHP or another server side language to create the JSON file? I want to be able to add/update/delete information from the JSON file at anytime from the convenience of my laptop.
Am I approaching this problem the correct way?