When I used your code as is, it did not work. Once I add two semicolons it worked and invoked somefunction controller action. After alert(status) and after $.post() call semicolon was missing.
also json1 was not defined so I replaced it with {}
In Home Controller
------------------
public JsonResult somefunction(string value)
{
return Json("Text", JsonRequestBehavior.AllowGet);
}
In Index View
-------------------
$(function () {
$.post("Home/somefunction", {}, function (data, status) {
alert(status);
}, "json");
});
Hope that helps,
Thanks