Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

Self referencing loop detected for property

Open dalton5 opened this issue 5 years ago • 1 comments

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 avatar Nov 16 '20 02:11 dalton5

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

idiidi avatar May 10 '23 13:05 idiidi