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

Add ReferenceResolverProvider to JsonSerializer to allow safe caching #1391

Open
TylerBrinkley opened this issue Jul 27, 2017 · 1 comment
Open

Comments

@TylerBrinkley
Copy link
Contributor

TylerBrinkley commented Jul 27, 2017

Since JsonSerializer's default ReferenceResolver is stateful I'd like a ReferenceResolverProvider added to JsonSerializer as was done for JsonSerializerSettings. This will prevent reference ids continuing to increment with each serialization call instead of starting at 1 for each.

@TylerBrinkley TylerBrinkley changed the title Add ReferenceResolverProvider to JsonSerializer to allow safe caching Add ReferenceResolverProvider to JsonSerializer to allow safe caching Jul 27, 2017
@Terebi42
Copy link

I am experiencing this bug in production, please accept this PR!

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