jsonString = File.ReadAllText(fileName); weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString);