remember
return Json(result,JsonRequestBehavior.AllowGet);
Thursday, April 26, 2018
JSON - A circular reference was detected while serializing an object of type 'System.Reflection
var result = JsonConvert.SerializeObject(ds, Formatting.Indented,
new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
});
return Json(result,JsonRequestBehavior.AllowGet);
new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
});
return Json(result,JsonRequestBehavior.AllowGet);
Subscribe to:
Posts (Atom)