I have below JSON data
{
"appDesc": {
"description": "App description.",
"message": "Create and edit presentations "
},
"appName": {
"description": "App name.",
"message": "Slides"
}
}
I want to Deserialize into C#
class object. I am using JsonConvert.DeserializeObject<>()
to achieve this functionality. But some how it is not working.
string JsonData= System.IO.File.ReadAllText(msgJSONpath);
var moreInfo = JsonConvert.DeserializeObject<appName>(msg)
internal class appName
{
public string message { get; set; }
public string description { get; set; }
}
So moreInfo object will have 2 properties in message and description.