Here is my code. But I do not know what to set the value to. It has to be done manually because the real structure is slightly more complex than this example.
Any help please?
struct Something: Decodable {
value: [Int]
enum CodingKeys: String, CodingKeys {
case value
}
init (from decoder :Decoder) {
let container = try decoder.container(keyedBy: CodingKeys.self)
value = ??? // < --- what do i put here?
}
}