What is the default return type of Web API?

By default Web API returns result in XML format. … If client need data in JSON format then type=json and same way if it is XML then type=xml, Here is the complete code you need to add in WebApiConfig.

For More Information Please Refer: https://www.c-sharpcorner.com/UploadFile/manas1/introduction-to-Asp-Net-webapi-and-returns-result-in-differe/