Post not yet marked as solved
Post marked as unsolved with 1 replies, 2,744 views
It looks like the solution in this example for Swift 4 no longer works in Swift 5.https://forums.developer.apple.com/thread/80288struct 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?