I have a json in following format:
let json = """
{
"stuff": {
"1": "one",
"2": "two",
"4": "four"
}
}
question is how can i make my
struct Stuff: Codable, Equatable {
let 1: String
let 2: String
let 4: String
}
compile and work?
i use to call this with below, and it works fine for everything but if let name starts with number it obviously won't compile
let obj = try? JSONDecoder().decode(T.self, from: data)