public class WeatherForecast
public DateTimeOffset Date { get; set; }
public int TemperatureCelsius { get; set; }
public string? Summary { get; set; }
public string? SummaryField;
public IList<DateTimeOffset>? DatesAvailable { get; set; }
public Dictionary<string, HighLowTemps>? TemperatureRanges { get; set; }
public string[]? SummaryWords { get; set; }
public class HighLowTemps
public int High { get; set; }
public int Low { get; set; }
public static void Main()
""Date"": ""2019-08-01T00:00:00-07:00"",
""TemperatureCelsius"": 25,
""2019-08-01T00:00:00-07:00"",
""2019-08-02T00:00:00-07:00""
var weatherForecast = JsonConvert.DeserializeObject(jsonString);
Console.WriteLine(weatherForecast.GetType().GetProperty("Date").GetValue(weatherForecast, null));