Newtonsoft.Json icon indicating copy to clipboard operation
Newtonsoft.Json copied to clipboard

Improve Self referencing loop exceptions on properties by including a recommendation

Open b9chris opened this issue 10 years ago • 1 comments

The solution to a self-referencing loop on most Properties is to add an ignore reference loop attribute, so the Exception may as well be there to tell novices how to most easily resolve it. Most devs running into this for the first time are likely to be surprised at the depth of Json.Net in having ways of handling this, and it may lead them to explore JsonProperty(ReferenceLoopHandling more deeply.

b9chris avatar Jan 28 '15 05:01 b9chris

I wholeheartedly endorse this, I ran into this problem before and was scratching my head as to what could've been circular.

And adding more information is always helpful.

ericnewton76 avatar Dec 30 '16 18:12 ericnewton76