Skip to content

Self referencing loop detected for property #627

Open
@dalton5

Description

@dalton5

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions