I have many serialized objects that have a $type
property that I'd like to deserialize. However, I want to tell Newtonsoft to map to different type depending on the value of $type
,
How can I do this?
E.g.
{
"$type": "A.B.C, A.B",
"MyProp": "MyValue"
}
I'd like Newtonsoft to interpret this as:
{
"$type": "A.B.D, A.B",
"MyProp": "MyValue"
}