Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Self referencing loop exceptions on properties by including a recommendation #474

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

b9chris
Copy link

@b9chris b9chris commented Jan 28, 2015

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.

@ericnewton76
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants