undo remove nulls from api (breaks react-table)

ref #505
This commit is contained in:
Collin Barrett 2018-09-21 20:14:25 -05:00
parent bd63439845
commit c551621544

View file

@ -37,8 +37,8 @@ private static void AddMvcCustom(this IServiceCollection services) =>
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
.AddJsonOptions(opts =>
{
opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
opts.SerializerSettings.ContractResolver = new SkipEmptyContractResolver();
//opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
//opts.SerializerSettings.ContractResolver = new SkipEmptyContractResolver();
});
private static void AddRoutingCustom(this IServiceCollection services) =>