Using Newtonsoft to (de)serialize Json, I want to refactor a propertyname without existing Json-markup to break.
F.e.:
{
"old-very-specific-property": "value"
}
Should work just as fine as:
{
"new-name": "value"
}
mapping to
public class Model {
[JsonProperty, JsonRequired]
public string NewName { get; set; }
}
I want BOTH versions of Json above to map to the provided model, in order to maintain backwards compatibility.