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

Self referencing loop detected for property #627

Open
dalton5 opened this issue Nov 16, 2020 · 1 comment
Open

Self referencing loop detected for property #627

dalton5 opened this issue Nov 16, 2020 · 1 comment
Labels

Comments

@dalton5
Copy link

dalton5 commented Nov 16, 2020

hi,

When I try to serialize my data I have the error: Self referencing loop detected for property x

To fix this issue I would olike to have access to the json formatter to set:

config.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize; config.Formatters.JsonFormatter.SerializerSettings.PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.Objects;

How can I set these options?

Thanks,

@dalton5 dalton5 added the Bug label Nov 16, 2020
@idiidi
Copy link

idiidi commented May 10, 2023

Did you ever solve this? I am having the same when using a Microsoft.Maui.Graphics.IImage object

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

No branches or pull requests

2 participants