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
Adham Gad
9,899 PointsHow do i send Data (JSON) from an iOS app to server ??
I'm making a quiz app for college project and i learned from the blog reader tutorial how to deal with data coming from the web (JSON) But i'm really stuck on how to send back data to the backend i know how to convert my code to json but i cant find any understandable tutorial on how to send it back to the server
Adham Gad
9,899 PointsNick Janes
it's one of the requirements of the project , the quiz app will have instructors (who can create quizzes , create groups to add certain students , publish quizzes )
so when the instructor should use the app and create a new quiz for example i'll store the quiz questions ,answers and right answers on the backend
Students can log in with their created accounts and they can view the quizzes (which were created by the instructors) and i should get these data also from the server and then they choose their answers and then their answers are stored
i know how to get the JSON data and represent it in my app but what i cant figure out when i need to send data (the questions created by the instructor for example) how can i manage that
Nick Janes
5,487 PointsAhh I see. Its a bit too advanced for me. I don't really know how to do much between servers and clients, just clients.
Adham Gad
9,899 PointsIt's ok,thanks Nick i appreciate your reply
Nick Janes
5,487 PointsNick Janes
5,487 PointsWhy do you need to send the data back to the server?
You could just send the data of which one is correct along with the questions/answers and award the points there.