1jsonString = File.ReadAllText(fileName);
2weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString);
3
1var resultCon = JsonConvert.DeserializeObject<Dictionary<string, string>>(jsonStr);
2
3//or
4string json = "{\"ID\": 1, \"Name\": \"Abdullah\"}";
5User user = JsonConvert.DeserializeObject<User>(json);
6/*
7public class User
8{
9 public int ID { get; set; }
10 public string Name { get; set; }
11}
12*/