I want to display a json string returned in the result of an ajax call in the from of a table. My ajax code is :
var table = $('#PartnersTable');
$.ajax({
type: "GET",
url: '@Url.Action("Get","Home")',
dataType: 'json'
}).done(function (data) {
// Code here
});
I have tried many solution , that are on stackoverflow but they didn't work. Thanks in advance
This is my action code :
public ActionResult Get()
{
Home h = new Home();
return Json(h.get(), JsonRequestBehavior.AllowGet);
}