In some cases I have NewtonSoft JSON.NET and in my controller I just return the JObject
from my controller and all is good.
But I have a case where I get some raw JSON from another service and need to return it directly from my webAPI. In this context I can't use NewtonSoft, but if I could then I'd create a JObject
from the string (which seems like unneeded processing overhead) and return that and all would be well with the world.
However, I want to return this simply, but if I return the string, then the client receives a JSON wrapper with my context as an encoded string.
How can I explicitly return a JSON from my WebAPI controller method?