JsonIgnore attributes not working in ASP.NET?
Posted
by Geoffrey
on Stack Overflow
See other posts from Stack Overflow
or by Geoffrey
Published on 2010-06-01T23:26:46Z
Indexed on
2010/06/01
23:33 UTC
Read the original article
Hit count: 195
I've got an object in my project with circular references. I've put [JsonIgnore] above the field like so:
[JsonIgnore]
public virtual Foobar ChildObject { get; set; }
I'm still getting circular reference errors when I serialize the object. The only fields that do not have JsonIgnore are string fields and should not cause this. Is there something else I need to do to get JsonIgnore to work?
Thanks!
© Stack Overflow or respective owner