JQuery getJSON iþlevini kullanmak
JSON verileriyle baþa çýkmanýn bir baþka güzel yolu da JQuery getJSON iþlevini kullanmaktýr.
public ActionResult SomeActionMethod(int id)
{
return Json(new {foo="bar", baz="Blech"});
}
Basitçe jquery getJSON yöntemi
$getJSON("../SomeActionMethod", { id: someId }, function(data) { alert(data.foo); alert(data.baz); } );