[Solved] Place JSON data in label in Swift [duplicate]
Try using Codable to parse the JSON response. Create the models like, struct Root: Decodable { let data: Response } struct Response: Decodable { let timeIn: String let timeOut: String } Now parse your JSON data like, if let data = data { do { let decoder = JSONDecoder() decoder.keyDecodingStrategy = .convertFromSnakeCase let response = … Read more