Environment version: 4.0.30319.42000
Json.NET version: Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
Input JSON:
{
"PropertyA": null,
"PropertyB": null,
"PropertyC": null,
"PropertyD": null,
"SomeEnum": null,
"PropertyNullable": null
}
Deserialized object using NullValueHandling.Ignore and CustomContractResolver; re-serialized with default settings:
{
"PropertyA": null,
"PropertyB": 0,
"PropertyC": false,
"PropertyD": "0001-01-01T00:00:00",
"SomeEnum": 0,
"PropertyNullable": null
}
Deserialized object using NullValueHandling.Ignore and CustomContractResolver; re-serialized using NullValueHandling.Ignore and CustomContractResolver:
{
"PropertyB": 0,
"PropertyC": false,
"PropertyD": "0001-01-01T00:00:00",
"SomeEnum": "Zero"
}