I need requirement that the deserialize the json as string which is available inside another Json. I have the Json string as like below,
string testJson =
"{
"AssemblyName":"AssemplyName",
"ClassName":"AssemplyName.ClassName",
"Options":"{ "property1":"value1","property2":10}"
}";
To deserialize, I have the class like below,
public class CType
{
public string AssemblyName { get; set; }
public string ClassName { get; set; }
public string Options { get; set; }
}
So, I deserialize like below,
CType cType = JsonConvert.DeserializeObject<CType>(testJson);
Now, I expect the resuly like below,
AssemblyName = "AssemplyName"
ClassName = "AssemplyName.ClassName"
Options = "{ "property1":"value1","property2":10}"
It would be much appreciated anyone can help on this