[3.0 System.Text.Json]JsonExtensionData should allow non-JsonElement types during...
authorMarco Rossignoli <marco.rossignoli@gmail.com>
Wed, 12 Jun 2019 15:08:09 +0000 (17:08 +0200)
committerAhson Khan <ahkha@microsoft.com>
Wed, 12 Jun 2019 15:08:09 +0000 (08:08 -0700)
commitf61d6e51eaacf36a0f54b322e33764188a764162
tree9914b7d1bed056f969d840707483b2d16b5528e8
parent3cbef1bcea7bfa2be31da15713126b3c2819548f
[3.0 System.Text.Json]JsonExtensionData should allow non-JsonElement types during serialization (dotnet/corefx#38306)

* fix serialization

* serialize all as dictionary

* address PR feedback

* address PR feedback

* remove redundant test

Commit migrated from https://github.com/dotnet/corefx/commit/4e16caa67a6b15ce270c231720177818f50f1f84
src/libraries/System.Text.Json/src/Resources/Strings.resx
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.HandleDictionary.cs
src/libraries/System.Text.Json/src/System/Text/Json/ThrowHelper.Serialization.cs
src/libraries/System.Text.Json/tests/Serialization/ExtensionDataTests.cs