Skip to content

Add JsonIgnoreCondition.WhenWritingNull - #39388

Merged
layomia merged 2 commits into
dotnet:masterfrom
layomia:when_writing_null
Jul 16, 2020
Merged

layomia merged 2 commits into
dotnet:masterfrom
layomia:when_writing_null

Conversation

@layomia

@layomia layomia commented Jul 15, 2020

Copy link
Copy Markdown
Contributor

Fixes #39152

@layomia layomia added this to the 5.0.0 milestone Jul 15, 2020
@layomia
layomia requested review from jozkee and steveharter July 15, 2020 21:01
@layomia layomia self-assigned this Jul 15, 2020
@Dotnet-GitSync-Bot

Copy link
Copy Markdown
Collaborator

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@steveharter steveharter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but with some misc nits and test understandability.

@layomia
layomia force-pushed the when_writing_null branch from f23085b to db9527d Compare July 15, 2020 21:44
@layomia
layomia merged commit 9b3cbc4 into dotnet:master Jul 16, 2020
@layomia
layomia deleted the when_writing_null branch July 16, 2020 03:49
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.Text.Json: Ignore null values while serializing

4 participants