c# convert string to json in simple way code example
Example 1: string to json c#
JObject json = JObject.Parse(str);
Example 2: c# json convert
jsonString = File.ReadAllText(fileName);
weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString);