Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ASP.NET Core Tips & Tricks
public IServiceProvider ConfigureServices(IServiceCollection services)
var builder = services.AddMvc();
o =>
o.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
o.SerializerSettings.Converters.Add(new StringEnumConverter());
o.SerializerSettings.Formatting = Formatting.Indented;
o.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
o.SerializerSettings.MissingMemberHandling = MissingMemberHandling.Ignore;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.