How to send result back in JSON format in MVC
Ask by Niraj Kumar Mishra
Updated 24 Sep 2020
In MVC, we have the JsonResult class by which we can return back data in JSON format. Below is a simple sample code which returns back a Customer object in JSON format using JsonResult.