Max allowed object depth reached while trying to export from type System.Collections.Generic.List

使用LitJson报错 Max allowed object depth reached while trying to export from type System.Collections.Generic.List

改为使用Newtonsoft.Json.dll

使用Newtonsoft.Json.dll报错Self referencing loop detected with type,原因是实体集合里面存在导航属性,去掉相关属性即可