2 The Basics of JSON Decoding - Swift

preview_player
Показать описание
I this video we will explore the basics of decoding JSON. We will start with simple JSON Objects and the decodable protocol. We will look at having optional properties, JSON Arrays and more complex objects and finish with some strategies on building your structs and classes based on the JSON data structure.

Series Resources:
Videos 1 - 8 all use the same Xcode Playground.
Video 9 Starter Projects

All Videos in this series

1. Introduction to JSON and Codable with Swift

2. The Basics of JSON Decoding - Swift

3. Getting JSON from a local file - Swift

4. JSON - Decoding Dates - Swift Codable

5. JSON CodingKeys - Swift

6. JSON - Custom CodingKeys- Swift

7. JSON from API - Swift

8. Encoding Data - Swift

9. Decode/Encode Sample Application - Swift

Stewart Lynch Links:

YouTube Playlist on iOS Development

Stewart Lynch’s CreaTECH Solutions Web Site

Stewart Lynch's GitHub

Stewart Lynch on Twitter
Рекомендации по теме
Комментарии
Автор

Great Work. Please continue sharing professional-level educational content. I am watching these videos across seven seas from the worlds remotest and second poorest country. Thanks for contributing to the Opensource community.

NotoriousGarage
Автор

I can honestly say that I enjoyed this video and I actually learned something valuable and cool! As someone trying to get used to doing things in Swift, I really found this helpful! May God bless you and thank you very much!

KennyFully
Автор

Excellent work with your instructional videos. you are one of a very few people on youTube that actually knows how to
teach this stuff. Again very useful material, Thank You

mefailtelias
Автор

Fantastic. Nothing less than the best swift tutorials on youtube.

lucasdebritoarruda
Автор

THANKS Stewart Lynch
can't explain how much these videos helped me
solved my doubts :)

harshyadav
Автор

Really useful tutorials, keep up doing great job Steward. Good luck!

jasurrajabov
Автор

Thank you very much Stewart for the detailed yet easy-to-understand tutorial. I'm trying my best to hone my JSON Parsing with Swift skill. This playlist is a godsend 🙏🏻

rungxanh
Автор

Thank You ! I I aways try to do my best, but with your help, I can become even better !

viniciushenriquepellegrini
Автор

Stewart, thank-you for the videos. I find them very thorough and informative. Will keep watching through the series. Thanks again!

franciscocastellon
Автор

This was so helpful, cleared so many of my doubts 🙏🏻 Thank you.

sakshipatil
Автор

thanks for all the videos. the way you explain is very clear and easy to follow thnx again

Jfreak
Автор

Hi Stewart, great series, I have a quick question: How can we access data that is in a dictionary that is nested inside a mother dictionary. I know you were able to do that with arrays by using the [name of array structure] syntax, but how can I do that for dictionaries?

SauravKumar-siyg
Автор

You are fantastic
Thank you so much 😊
I am wondering which video editor you are using and how many hours you spend for preparing your videos
I Know that this videos take allot of time and work 👍

ضدالظلم-دح
Автор

3:52 let person1JSONData = Data(person1JSON.utf) would do the same thing?

Денис-жфр
Автор

Hello Stewart, it's an excellent job, thanks for sharing your knowledge
I've tried to download the files but it's not working, maybe the link is not avaible anymore
if there is other link and you could share it would be great
thanks in advance

josueog
Автор

good job, but the playground does not want to execute starting from place with personsJSON declaration

georgeivannikov
Автор

unable to download the started project

nancyjain
Автор

In version 12.4, I am required to unwrap personsJSONData ... let personsArray = try! decoder.decode( [Person].self, from: personsJSONData!) ... in order for the decoding to complete . This makes some sense to me as partner is nil in the second person. Is this due to changes in the version?

kenturnbull