Json.NET - Default deserialization behavior for a single property in CustomCreationConverter
- 阅读更多 关于 Json.NET - Default deserialization behavior for a single property in CustomCreationConverter
问题 In the following scenario, how do I get CrazyItemConverter to carry on as usual when it encounters a JSON property that exists in the type I'm deserializing to? I have some JSON that looks like this: { "Item":{ "Name":"Apple", "Id":null, "Size":5, "Quality":2 } } The JSON gets deserialized into a class that looks a whole lot like this: [JsonConverter(typeof(CrazyItemConverter))] public class Item { [JsonConverter(typeof(CrazyStringConverter))] public string Name { get; set; } public Guid? Id