3 JSON From local file - Swift

preview_player
Показать описание
I this video we will see how we can get the contents of a file that is part of the Bundle of application and, if it is JSON, parse using our Decodable protocol.

We will be safer in our implementation this time around using guard statements in case we have errors and need to crash out.

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

Video References:
JSON Formatter and Validator:

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
Рекомендации по теме
Комментарии
Автор

One of my favourite teachers on YouTube. Love from Cape Town, South Africa

ashleydube
Автор

Again, I would have to say that it has been truly enjoyable to learn something that I have been struggling with. THANK YOU VERY MUCH.

hcri
Автор

Great Work !! Coming here in the comment section to acknowledge your contribution. BIG THANK YOU

NotoriousGarage
Автор

everything is clear as never, your methodology resembles the Stanford's

ydxyrbx
Автор

Your explanations are very clear.. Your contents are amazing.. You helped my a lot. I was Struggling to Parse the JSON objects. I couldn't find any best tutorials. You help me thanks a lot.. Keep posting more Videos..

vishweshwaranr
Автор

Thank you very much Stewart... Excellent lessons... Is it possible in the future create few videos about Combine + SwiftUi?

andrejkling
Автор

How can we print specific records such as the first color description or the third?

kenturnbull
Автор

the download link doens't work and the repository on Github have missing files to follow the video.

avanhunter
Автор

I’m getting an error which is about the guard being not in the top level or something
Note:
When i created the project I selected “app” and create a new swift file inside the project

igx_s
Автор

Excelent tutorial!!. Do you plan a future video about XML encoding and decoding?

nikkoskinas