Feature request: beginner friendly rest/json support

I started my iOS development "career" about a week ago and I have already an almost functioning app built mostly in swift. It is much easier then I anticipated, much thanks to the great tools available. I have a background in making javascript tools/widgets for myself and now I can do the same thing with proper apps. It's almost easier since less time has to be spent on tool-config etc.


Setting up the environment, getting a dev account, making an app following the MVC pattern, displaying and manipulating screen contents and "best practice" issues took about ~16 hours (57% of dev time) to learn.


During the past ~12 hours (42% of dev time) (not consecutive) I have been stuck in trying to get a simple JSON parser and REST api loader to work. This part has not felt very "Swift" at all. I looked through some code examples and the REST part has been left out...


I also got stuck in the ever so annoying "framework creep" that javascript suffers from. "Is there a problem? Use this framework on github!". Only problem is that none of them work properly. Soon you have stuffed your project with multiple frameworks and it is impossible to separate functioning code from the frameworks...


I would hope some effort would be put into simplifying this workflow/aspect of app development.


I like the jQuery Ajax functions. It was some time ago I used them but they were simple from what I remember. Just setting up some callback handlers as attributes and it was done!


It would also be nice if there was some form of json explorer or pattern discovery feature that could recommend a data structure for the results. E.g. paste some json into an input box and get a CoreData setup for free.

Mipster99,


Congratulations on the start.


You may find these useful:


Thanks for response, Jason. I guess need to learn to interpret Objective C syntax at some point, so perhaps that time is now.

I’m working on an open source REST framework that’s nearing its 1.0 release, and I’d love to get feedback from a relative newcomer to Swift/iOS — on whether the API makes sense, whether the docs make sense, etc.


It’s at https://bustoutsolutions.github.io/siesta/. If you have any thoughts, I’d value them.

Feature request: beginner friendly rest/json support
 
 
Q