I am trying to extract the below key-value pair in JSON to dictonary.
var str = @"
{
""tables"": {
""category"": ""Category"",
""subcategory"": ""SubCategory"",
""tfs"": ""tfs"",
""tickets"": ""snowtickets"",
""ticketcategoryauto"": ""TicketCategoryAuto"",
""ticketcategoryuserselected"": ""TicketCategoryManual""
}
}
";
var jo = JObject.Parse(str);
var x = from c in jo["tables"] select c;
I want the "tables" node of this Json into a dictionary object. so if I say x["category"] should get back "Category" similarly for other keys. How can I do that.