Fixing up HandleNull in JsonSerializer.Read to reset the property for dictionaries...
authorTanner Gooding <tagoo@outlook.com>
Tue, 25 Jun 2019 19:46:27 +0000 (12:46 -0700)
committerGitHub <noreply@github.com>
Tue, 25 Jun 2019 19:46:27 +0000 (12:46 -0700)
commitb3a2ae1946b73ab7d41167f54fab91a2f17cfb19
tree144fc1e1357ae3fcb3e66db6e84c98b22caf63c3
parentee818ba4e1a40ff368b3705f8432a5525cf1c376
 Fixing up HandleNull in JsonSerializer.Read to reset the property for dictionaries. (dotnet/corefx#38704)

* Fixing up HandleNull in JsonSerializer.Read to reset the property for dictionaries.

* Adding regression tests for dotnet/corefx#38565

* Fixing HandleDictionary in JsonSerializer.Write to respect IgnoreNullValues

* Updating the Regression38565_Serialize test to not expect null

* Responding to PR feedback and adding a regression test for dotnet/corefx#38557

Commit migrated from https://github.com/dotnet/corefx/commit/78e00d4b0ad5b390c9a54431c632062392c3ed7e
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Read.HandleNull.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.HandleDictionary.cs
src/libraries/System.Text.Json/tests/Serialization/DictionaryTests.cs