public JsonResult getCustomer() { Customer obj = new Customer(); obj.CustomerCode = "1111"; obj.CustomerName = "Raj"; return Json(obj, JsonRequestBehavior.AllowGet); }