What am i missing? i am trying to do the following:
public JsonResult LoggedOn()
{
ViewBag.FirstName = "todd";
ViewBag.LastName = "billings"
ViewBag.Email = "me@rad.com";
return Json(ViewBag, JsonRequestBehavior.AllowGet);
}
The result in the js making this call is NULL/empty? There is no built in conversion of viewbag to JSON result? What am i missing? If do this with any other object it converts it to JSON.