History For many years now, the go-to way of encoding and decoding Swift types to JSON has been the Codable protocol. This gave a more type safe way of handling json than its predecessor JSONSerialization, which spat out [String: Any] dictionaries. Conversely Codable handles conversion upfront, dealing with all the type…