Skip to content

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

Description

@SanderSade

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.

Activity

  1. ericstj commented on Dec 9, 2019

    @ericstj
    Member

    Thank you for the issue.

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

  2. removed
    untriagedNew issue has not been triaged by the area owner
    on Dec 9, 2019
  3. added this to the 5.0 milestone on Dec 9, 2019
  4. layomia commented on Dec 11, 2019

    @layomia
    Contributor

    @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

  5. ghost locked as resolved and limited conversation to collaborators on Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions