I click the authorize button and I get json data.
struct User: Decodable {
var a: String
enum CodingKeys: String, CodingKey {
case a = "Date of Birth"
}
init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy:CodingKeys.self)
a = try container.decode(String.self, forKey: .a)
}
}
after clicking the button, I go to the main view and there how to get data from the User structure that was decoded