try
Controller
public ActionResult GetData() {
var data = GetLoad("path");
return Json(data);
}
View
<script src="~/Scripts/jquery-1.8.2.js"></script>
<script>
$.ajax({
type: "POST",
url: '@Url.Action("GetData", "YourControllerName")',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
if (data) {
$('#txtName').val(data.Name);
$('#txtCity').val(data.City);
$('#txtCompany').val(data.Company);
}
},
error: function (a, b, c) {
alert("error:", a, b, c);
}
});
</script>
<input type="text" id="txtName" />
<input type="text" id="txtCity" />
<input type="text" id="txtCompany" />