JsonOptions not working
anniekvandijk opened this issue · 1 comments
anniekvandijk commented
s.AddControllers().AddJsonOptions(x =>
{
x.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
x.JsonSerializerOptions.IgnoreNullValues = true;
});
Response still contains int and null