When using JSON.NET TypeHandling for json deserialization, is there a way to customize what property name it uses for type and what name is used to refer to which class?
I'm using an external api I can't control which returns json of this style.
[{
"type": "comment",
"message": "This is a comment",
"user": "Mike"
},
{
"type": "like",
"user": "Matt"
}]
Instead of "$type" is there a way to tell JSON.NET to look at "type"? Seems like there also should be a "TypeName" property on JsonObject because its currently looking for a fully qualified C# class name.
This question is strictly referring to the TypeHandling feature: http://www.newtonsoft.com/json/help/html/SerializeTypeNameHandling.htm