Custom JSON decoding using Codable
Deep dive into decoding JSON to Swift

Codable is standardised approach to encoding and decoding data in different formats to and from Swift. In simple this means converting say from JSON to Swift and back. Additionally you can do the same conversion from and to other formats too.