How can we make sure that web api returns json data only?
Loading
How can we make sure that web api returns json data only?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted Oct 10, 2022, 7:36 AM
https://www.c-sharpcorner.com/blogs/return-data-in-json-format-from-web-api
Vishal YelvePosted Oct 10, 2022, 6:42 AM
Open WebApiConfig.cs file in solution and add mentioned line