Returning JSON from WCF Web API
-
29-10-2019 - |
Question
The WCF Web API returns data either XML or JSON based on the Accept parameter in the request header not considering whether we set ResponseFormat=WebMessageFormat.Json in the WebInvoke/WebGet attributes. Is this the correct behavior of the API or a bug?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow