let city_name: String
let lon: Double
let timezone: String
let lan: Double
let country_code: String
let state_code: String
}
struct DayOfTheWeek: Codable {
let moonrise_ts: Int
let wind_cdir: String
let rh: Int
let pres: Double
let high_temp: Double
let sunset_ts: Int
let ozone: Double
let moon_phase: Double
let wind_gust_spd: Double
let snow_depth: Int
let clouds: Int
let ts: Int
let sunrise_ts: Int
let app_min_temp: Double
let wind_spd: Int?
let pop: Int
let wind_cdir_full: String
let slp: Double
let moon_phase_lunation: Double
let valid_date: String
let app_max_temp: Double
let vis: Double
let dewpt: Int
let snow: Int
let uv: Double
let weather: WeatherInfo
let wind_dir: Int
let max_dhi: Int?
let clouds_hi: Int
let precip: Int
let low_temp: Double
let max_temp: Double
let moonset_ts: Int
let datetime: String
let temp: Double
let min_temp: Double
let clouds_mid: Int
let clouds_low: Int
}
Вот JSON
stringValue: "wind_spd", intValue: nil)], debugDescription: "Parsed JSON number <2.8> does not fit in Int." Там точно числовое значение?
Точно Я типы уже 500 раз пересмотрел И названия тоже
Это не json. Это декодбл структура для jsona
Обсуждают сегодня