In some cases, I have NewtonSoft JSON.NET, and in my controller I just return a Jobject from my controller, and all is well.
But I have a case where I get some raw JSON from another service and must return it from my webAPI. In this context, I cannot use NewtonSOft, but if I could, I would create a JOBJECT from a string (which seems like unnecessary overhead processing) and return it, and everything will be fine with the world.
However, I want to return it simply, but if I return the string, then the client will receive a JSON wrapper with my context as an encoded string.
How can I explicitly return JSON from my WebAPI controller method?
json asp.net-mvc asp.net-web-api
klumsy Jun 13 '13 at 21:56 on 2013-06-13 21:56
source share