I have a JSON array I need to parse and I choose to use JSONDecoder to parse it.
JSON array looks like this:
[{\"Id\":0,\"Key\":\"key0\",\"Name\":\"n
Remove the initial values for the constant properties
class Result: Codable{ let title: String let id: Int let key: String let name: String // ... }
(or make the properties variable). Initialized constant properties can not be set by the JSON decoder.