fix JsonNode deserialising from null (#85463)
authoradj123 <adamjones123@hotmail.co.uk>
Wed, 10 May 2023 14:00:36 +0000 (15:00 +0100)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 14:00:36 +0000 (15:00 +0100)
commitc77d916fc383469d89c510028ed4115d16a85519
tree267d63b22344ec4806eb95f5ff4a6a5f3d58bbe5
parent5e1bf5483fa8c4d0c8b671ac7157cdf19fd7c08d
fix JsonNode deserialising from null (#85463)

* fix JsonNode deserialising from null

* add further tests for more null-deserialising scenarios

---------

Co-authored-by: Adam Jones <ajones@drwuk.com>
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonArrayConverter.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonNodeConverter.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonObjectConverter.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/JsonNode/JsonNodeTests.cs