Decoding Codable
summary
Codable turns verbose JSON parsing into a one‑liner by synthesizing initializers and CodingKeys so simple mappings require no manual work while enums, arrays and nested objects decode automatically. When JSON and property names diverge use custom CodingKeys or the decoder’s convertFromSnakeCase strategy. For awkward APIs manual encoding and decoding with keyed or nested containers lets code normalize dates, round numbers, or extract only the city field. Caveats: custom implementations must explicitly decode every property and missing required keys cause a decode failure.
AI-written summary · about
chapters (14)
- 0:00Start
- 0:56What this talk covers
- 4:06Once upon a time...
- 5:53Wait we need to encode, too...
- 7:31Swift 4 X Encoding
- 7:52Magic
- 8:54Custom Types
- 10:11Custom Coding Keys
- 14:14Why would we want to?
- 16:02Nested Containers
- 18:27What if the root element is an array?
- 19:51keyDecodingStrategy
- 22:17Other things of note
- 24:30Thank You








