Json crud operation
How to create crud operation using Web API JSON? I referred to so many links for XML. But I want in JSON format
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.
Jignesh KumarPosted Jan 22, 2020, 7:37 PM
Amit MohantyPosted Jan 22, 2020, 3:34 PM
If you want your Web API should return JSON response as default you will have to configure JSON Media Type Formatter.
Open WebApiConfig.cs file from App_start folder and add below code.
Gowtham RamarPosted Jan 22, 2020, 3:28 PM