Parsing Nested JSON in Swift 4

preview_player
Показать описание
In this video Mohammad Azam will demonstrate how to parse nested JSON using Swift 4 Codable protocol and then populate it in a custom Post model. Azam will also explain how to provide coding keys to customize your JSON mapping.

Book: Surviving the Coding Bootcamp - From no coding experience to earning a six-figure salary

Check out my courses:

Get courses from Big Mountain Studio:

1. Combine Mastery in SwiftUI

2. SwiftUI Animations

3. SwiftUI Views Mastery

4. Visual Swift Memory Mastery

5. Working with Data in SwiftUI

6. SwiftUI in UIKit Weekened Kickstarter
Рекомендации по теме
Комментарии
Автор

Thank you! Spent hours in class breaking down then watched your video up having panic attacks and you made it make

ezrablack
Автор

Clearly explained. Can't be more clear and precise! Thank You Azam for this contribution.

syedfaizanahmed
Автор

Thank you ! Finally a video that’s show the simplest form of this. Thank you!

cholschuh
Автор

So worth it. It took me a while to find a video that explains this so well.

OGLerma
Автор

I like the way you explain things in Swift :) This was the missing puzzle in Swift/JSON parsing topic, thank you!

MarosiAttis
Автор

azamsharp Thank you for this great video! Very good explanation :)

abcd
Автор

awesome! this is a really good tutorial on decoding JSON. Thank you!

konig
Автор

Hey Mohammad! Was just watching your ARKit Udemy course and I ran into a problem... I’ll have to share my code for that. Can you help me how I can reach you? Nobody seems to help me on forums... btw it is a really great course. Really clear explanation.

jaiswalji
Автор

How would you go about parsing date ranges? For example, the data goes back to 1914, but I only want to extract data from 2020. What woud be the best way to do it?

example-
To filter the dataset to only return records containing a specified value for incident_datetime simply add a URL parameter to your URL with incident_datetime as the key and your specified value.

michaelpowers
Автор

Will please parse the Jain having combination of arrays and dictionaries

ghareeshkumar
Автор

Do anyone know how to get all values with the same key, for example I want to get all User Names from the decoded array instead of getting only the first user like this : users[0].name. Should I use "for, in" loop or something else?

Darkgohn
Автор

I want to store this type of model and using Codable. Do you have any reference video for that ?

RIDDHAM
Автор

how would you start a URL session intending to do everything you do here, except including a basic authorization header for custom API?

todbrown