| How to set only JSON output in WebApiConfig file in App_Start folder?
In Web API some time we need only JSON output we can do this by many method but to get only JSON data in browser we use below code to be apply in WebApiConfig file in App_Start folder.
config.Formatters.Remove(config.Formatters.XmlFormatter); | | |