The Encodable and Decodable protocols that were added in Swift 4 provide an easy way to convert Swift types to and from external representations like JSON. In this talk you’ll learn how to use these protocols, and how the Codable system is designed.
Codable is also being adopted in server-side Swift. Learn how to write type-safe Swift web APIs yourself, without having to worry about HTTP content types, headers, and parsing. Easily extract the query parameters from web requests and handle them appropriately in just a few lines of code.
Finally, we’ll look at new enhancements to Codable, coming in Swift 4.1, which will make things even simpler for app developers.
Presented at iOSCon London 2018.