I do not know what to set the value to in the code below. It has to be done manually because the real structure is slightly more complex than this example.
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?
}
}