I'm currently creating a library that will handle ApiResponses in .NET
What it looks like at the moment:
ApiResponse{}
SuccessfulResponse: ApiResponse{}
FailedResponse: ApiResponse{}
I'm trying to create an EmptySuccessfulResponse for 204 responses, but the issue is that Newtonsoft.Json will always add the curly braces.
My main question is: Is there an annotation like [JsonIgnore] but for an entire class? The reason for that is to avoid a return null; in my Controller.