在使用循环引用的参数去调用WebAPI时报错

Self referencing loop detected for property

 

解决方案:

在类上面增加属性

[JsonObject(IsReference = true)]
public class Activity

 

JsonObject需要引用Newtonsoft.Json

posted on 2016-03-01 16:34  老有所依  阅读(217)  评论(0)    收藏  举报

导航