How to Parse JSON using Local Data | Swift 3, Xcode 8

preview_player
Показать описание
Today we go over how to add a file to your Xcode project and parse the JSON data using Swift 3. This is a step by step tutorial that will explain what is happening in each line of code so you can grasp the full concept of parsing data regardless of its source (i.e. local or remote)

Parsing data is a mandatory skill for most iOS development jobs and this tutorial will provide you with a skill you can use for many years to come in your development career. Adding local files to your project is also very common, so accessing the data from those files can be very useful as well.

The finished project will be posted up on github which you can find the link here:

If you have any questions or comments about the tutorial, or want to suggest a video to make, feel free to leave a comment below, or reach out to me on Twitter:

If you found this tutorial helpful, make sure to subscribe to the channel for more great tutorials.
Рекомендации по теме
Комментарии
Автор

You got the best tutorials to understand complex things! Also with a great personality that helps keep me focused here! Cheers, man!

canzino
Автор

Finally someone who bothered to make a really beautiful color scheme for Xcode. Might even be better then mine ;D Thanks for the tutorial.

MilleniumVFX
Автор

This was what i have been looking for! THANK U!!
Took me forever to find this tutorial =(
Very clean tutorial and explaination.
You deserve more subscribers, keep doing what you do!
cheers~

Z-zn
Автор

thanks for this tutorial, clear and beautifully illustrated concept, wish all your video will be this length : )

stevengao
Автор

People be sleeping on Kilo, he has that real good shit

kaziboy
Автор

This was so good. thanks for taking the time

ravindranraghu
Автор

Clear and very helpful!!! Many many Thanks 4 the job!

olivierdumont
Автор

very useful video and nice explanation .. Thanks you so much!!

anythingtechno
Автор

U R GREAT MAN . CAN U PLEASE ADD A VIDEO ABOUT PARSING THE JSON DATA DIRECTLY TO THE CODE AND THEN PUSHING THE DATA INTO A VIEW CONTROLLER, FOR EXAMPLE U R CREATING A USER PROFILE U MUST ADD ONLY THE POSSIBLE TO THE VIEW CONTROLLER FROM THE JSON FILE

karthickdarkstar
Автор

great tutorial but i cannot print anything. my consol outputs "Program ended with exit code: 0" everytime i run the program. Wont even print the path. Ive even cloned your project but same result. Pls help!

ckcangmah
Автор

Thankyou so much. This was a super super video that pretty much cleared my concept with file, data and json parsing.
One request- Please do a video on how to use the API of spotify and load tracks. I have done this one but every time I have to generate a oath token. I don't know how to request for a oath token from my app itself. Please do video with spotify API.

satyamsaluja
Автор

Great tutorial!!! It really helped me with a project I am currently working on. Could you make a video on how to cache data that are retrieved from the web?

giorgoskaryofyllis
Автор

Hey Kilo! How do I add images to that local json and parse it??

Shqtucke
Автор

Thanks kilo for the wonderful tutorial,
can you do a tutorial for beginners about how to Implement MVC with a sample web service so that they will have a chance to start with good coding practices .
Thanks for the tutorial once again.

karibandisurendra
Автор

how to store the json values which we get from api in the xcode in table format and depict those values in graphs or bars. Basically its a business application.

fathimas
Автор

Thanks for the interesting lessons. I have a request to you, could you show me how to work with the mysql database. I would like to learn how to create a connection with a database, read data from them and also write them down. I will be very grateful

YoungDeveloper
Автор

It was helpful. Tnx a lot. But have you any lesson about how to store data into existing JSON file? Thank you.

АндрейДамм-уп
Автор

As you are selecting Button in Main StoryBoard. But I am not seeing multiple types of button option. Which type of button need to be selected? Please help

harneetkaur
Автор

Hi Kilo, I have tried using your code, and there is no error and build success, using a simulator and it shows blank, but in my output from the xcode, it also shows blank, any suggestions on how to tackle this problem? Maybe is some sort of setting ?

LearnWithZ
Автор

Please! Who can help me? I use this code, but "for" doesn't work fully, sometimes works completely, what is wrong in my code?

dasmartkz
visit shbcf.ru