Swift JSONDecoder y nestedContainer: ¿Cómo acceder a JSON anidado en Swift? #4
Автор: SwiftBeta
Загружено: 2021-07-01
Просмотров: 1182
Описание:
nestedContainer en Swift nos sirve para acceder a JSON anidado de una respuesta HTTP. Es muy útil para coger las keys del JSON que queremos y añadirlas a nuestro modelo sin crear modelos que no necesitamos.
🔗 OTROS VIDEOS:
1- URLSession: • Swift URLSession: ¿Cómo crear una petición...
2- Decodable: • Swift DECODABLE: Cómo usar JSONDecoder par...
3- JSONDecoder y decodeIfPresent: • Swift JSONDecoder y decodeIfPresent: trans...
4- JSONDecoder y nestedContainer: • Swift JSONDecoder y nestedContainer: ¿Cómo...
5- URLSession y JSONDecoder: • Swift URLSESSION y JSONDECODER: Petición H...
⏱ ÍNDICE
0:00 - Introducción
0:57 - Transformar JSON anidado a un modelo
2:06 - Creamos init del JSONDecoder manual
2:52 - Usamos nestedContainer
__________________________________
¿Lo has encontrado útil? puedes encontrar más contenido de SwiftBeta en:
Web: https://www.swiftbeta.com
Twitter: / swiftbeta_
Github: https://github.com/swiftbeta
#SwiftUI #Xcode #Swift
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: