I\'ve got a couple of services which already receive a json string (not an object) that must be returned to the client. Currently, I\'m creating the HttpResponseMessag
Leave the response format to the content negotiation in order to be REST compliant, the client should decide what format it wants.
In your web API action, you should just return Ok(your object)
and web API will see what is the best format to return it.
If you need to omit other formatters, then just remove the other MediaTypeFormatter
objects just as Nkosi advised.