json to c# class convert online code example
Example 1: string json to class c#
var result = JsonConvert.DeserializeObject<YourClass>(jsonstring);
Example 2: c# json convert
jsonString = File.ReadAllText(fileName);
weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString);