If a JsonIgnore attribute exists on a model property or field we should not include it as it will never reach the client and will only cause confusion. NewtonSoft.Json is the by far most commonly used .NET serializer and JsonIgnore is a common attribute that can cause a lot of issues.
If this is considered too narrow an exclusion, however, perhaps the user can provide in their config file a list of excluded attributes?
If a JsonIgnore attribute exists on a model property or field we should not include it as it will never reach the client and will only cause confusion. NewtonSoft.Json is the by far most commonly used .NET serializer and JsonIgnore is a common attribute that can cause a lot of issues.
If this is considered too narrow an exclusion, however, perhaps the user can provide in their config file a list of excluded attributes?