newtonsoft deserialize to object code example
Example 1: deserialize json to object c#
dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(jsonstring);
Example 2: c# json convert
jsonString = File.ReadAllText(fileName);
weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString);