It looks like the solution in this example for Swift 4 no longer works in Swift 5.
https://forums.developer.apple.com/thread/80288
struct Customer: Codable {
let id: String
let email: String
let metadata: [String: Any]
}
What's the best way to decode an arbitrary dictionary in Swift 5? Is the codable protocol even an option? Do we manually parse it using JSONSerialization?