Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Unassigned: JsonContractResolver should use Default SerializerSettings [1104]

$
0
0
In JsonMediaTypeFormatter, JsonContractResolver is set as DefaultContractResolver, Which calls ConfigureProperty Method, Which should set Default SerializerSettings from JsonMediaTypeFormatter,
because of which DefaultValueHandling, NullValueHandling, don't work at all.

private void ConfigureProperty(MemberInfo member, JsonProperty property)
{
if ((this._formatter.RequiredMemberSelector != null) && this._formatter.RequiredMemberSelector.IsRequiredMember(member))
{
property.Required = Required.AllowNull;
property.DefaultValueHandling = 0;
property.NullValueHandling = 0;
}
else
{
property.Required = Required.Default;
}
}








Comments: Hi, We are still unable to reproduce this issue per your description. If you are able to come up with a repro for this please attach it to the bug and reactivate. Thanks, Eilon

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>