JsonIgnore attribute keeps serializing properties in ASP.NET Core 3
问题 I've recently updated my API project to ASP.NET Core 3. Since then, [JsonIgnore] attributes are not working: public class Diagnostico { [JsonIgnore] public int TipoDiagnostico { get; set; } [JsonIgnore] public int Orden { get; set; } [JsonIgnore] public DateTime? FechaInicio { get; set; } public string TipoCodificacion { get; set; } public string Codigo { get; set; } public string Descripcion { get; set; } } All the properties of classes are being serialized. The API endpoints are in .NET