c# jsonobject how to convert String content code example
Example 1: how to convert object in string JSON c#
var json = new JavaScriptSerializer().Serialize(obj);
Example 2: c# json convert
jsonString = File.ReadAllText(fileName);
weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString);