public ActionResult Test2() { ChildView child = new ChildView(); string childJson = JsonHelper.Serialize(child); JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); string childJson1 = javaScriptSerializer.Serialize(child); return Content(childJson1, "application/Json"); }
public ActionResult Test() { ChildView child = new ChildView(); return Json(child, JsonRequestBehavior.AllowGet); }