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

What is Newtonsoft.Json's ReferenceLoopHandling equivalent in System.Text.Json? #14497

Closed
TanvirArjel opened this issue Sep 27, 2019 · 2 comments

Comments

@TanvirArjel
Copy link
Contributor

To ignore referencing loop, with Newtonsoft.Json, we do as follows:

public void ConfigureServices(IServiceCollection services)
{
    ...

    services.AddMvc()
        .AddJsonOptions(
            options => options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
        );

    ...
}

My question is what is equivalent in System.Text.Json?

@davidfowl
Copy link
Member

There is none.

@pranavkm
Copy link
Contributor

@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants