Hello,
Re: [{"NationalCode":"12458","LicenceCode":"4582aS","Phone":"45236987"}]
You can direct access it using:
View:
success: function (response) {
var groupVal = response.NationalCode;
}
Let me explain you:
Controller:
public JsonResult GetAdminSettingByID(int settingID)
{
var adminSettingDetails = bjClsAdminService.GetAdminSettingByID(settingID);
return Json(adminSettingDetails, JsonRequestBehavior.AllowGet);
}
Using model class for create json and pass the class object directly here.