Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jsonFormatter = new JsonMediaTypeFormatter
- {
- SerializerSettings = new JsonSerializerSettings
- {
- NullValueHandling = NullValueHandling.Ignore
- }
- };
- config.Services.Replace(typeof(IContentNegotiator), new JsonContentNegotiator(jsonFormatter));
Add Comment
Please, Sign In to add comment