UUF: How to ignore all null values
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
### Type of issue
Missing information
### Description
Why is there no way to ignore all null values when deserializing JSON? This used to exist! I shouldn't have to make my properties nullable if I don't actually expect nulls and a default value is perfectly acceptable if I receive one and ignore it!
### Page URL
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/ignore-properties
### Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/serialization/system-text-json/ignore-properties.md
### Document Version Independent Id
db1ef743-6f31-a509-4676-f22d4847792d
### Article author
@gewarren
### Metadata
* ID: b7aa3b68-ffe0-8bdf-b6f4-b99672086a92
* Service: **dotnet-fundamentals**
[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+db1ef743-6f31-a509-4676-f22d4847792d)
Contributor guide
Assessment
This issue has not been assessed yet.