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

Options to handle the default values during JSON serialization and deserialization #681

Closed
SanderSade opened this issue Dec 9, 2019 · 2 comments

Comments

@SanderSade
Copy link

SanderSade commented Dec 9, 2019

JSON.NET has DefaultValueHandling enumeration, which allows users to determine how the default values are handled during de/serialization.

Similar functionality would be very useful in System.Text.Json, as DefaultValueHandling.Ignore/IgnoreAndPopulate would allow considerable reduction of JSON size in many cases.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Text.Json untriaged New issue has not been triaged by the area owner labels Dec 9, 2019
@ericstj
Copy link
Member

ericstj commented Dec 9, 2019

Thank you for the issue.

@layomia I recall discussing this last week. Do we already have an issue tracking this?

@ericstj ericstj removed the untriaged New issue has not been triaged by the area owner label Dec 9, 2019
@ericstj ericstj added this to the 5.0 milestone Dec 9, 2019
@layomia
Copy link
Contributor

layomia commented Dec 11, 2019

@ericstj, yes this is a duplicate of https://github.com/dotnet/corefx/issues/38878. I'll close this one and transfer the older one to this repo. cc @SanderSade

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

No branches or pull requests

4 participants