# Friday Q&A 2017-07-14: Swift.Codable

DevFeed: [Friday Q&A 2017-07-14: Swift.Codable](<https://devfeed.tech/articles/friday-q-a-2017-07-14-swift-codable-30618.md>)

Original publisher: [Read original article](<http://www.mikeash.com/pyblog/friday-qa-2017-07-14-swiftcodable.html>)

Author: Mike Ash

Published: 2017-07-14T13:57:00Z

Content type: article

Language: en

Sources: [Mike Ash](<https://devfeed.tech/sources/mike-ash.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>), [Objective-C](<https://devfeed.tech/topics/objective-c.md>), [data](<https://devfeed.tech/topics/data.md>), [Mobile](<https://devfeed.tech/topics/mobile.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [2017](<https://devfeed.tech/tags/2017.md>), [apis](<https://devfeed.tech/tags/apis.md>), [apple](<https://devfeed.tech/tags/apple.md>), [apps](<https://devfeed.tech/tags/apps.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [build](<https://devfeed.tech/tags/build.md>), [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [data](<https://devfeed.tech/tags/data.md>), [error](<https://devfeed.tech/tags/error.md>), [format](<https://devfeed.tech/tags/format.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [json](<https://devfeed.tech/tags/json.md>), [make](<https://devfeed.tech/tags/make.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mobile-apps](<https://devfeed.tech/tags/mobile-apps.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [q-a](<https://devfeed.tech/tags/q-a.md>), [swift](<https://devfeed.tech/tags/swift.md>)

## AI overview

This article explains Swift 4's Codable protocol and its serialization machinery. It describes serialization of values for storage or network transmission, contrasts Codable with earlier Apple ecosystem approaches, and discusses reducing repetitive encoding and decoding code.

## Source excerpt

One of the interesting additions to Swift 4 is the Codable protocol and the machinery around it. This is a subject near and dear to my heart, and I want to discuss what it is and how it works today. (Read More)