Fixed deserialization of null arrays for issue dotnet/corefx#37606 (dotnet/corefx...
authorgnovack <50467879+gnovack@users.noreply.github.com>
Thu, 16 May 2019 23:35:08 +0000 (19:35 -0400)
committerAhson Khan <ahkha@microsoft.com>
Thu, 16 May 2019 23:35:08 +0000 (16:35 -0700)
commit7d46b3008a5a4002fd12a13b2f94a83a02975e76
tree2041e8bad3e5e8458d9c2fe37b4eda4349db8cb0
parent3ee0e266bc8f9b368826d32af6e37f35a9c4bdf0
Fixed deserialization of null arrays for issue dotnet/corefx#37606 (dotnet/corefx#37616)

* Fixed deserialization of null root arrays.

* Used reader.CurrentDepth to catch root level nulls.

Commit migrated from https://github.com/dotnet/corefx/commit/026fa6a6889ab1c9c8f14f55d414d2940fc59805
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Read.HandleNull.cs
src/libraries/System.Text.Json/tests/Serialization/Null.ReadTests.cs