Fix serialization of Dictionary<string, object> (dotnet/corefx#37686)
authorJeremy Kuhne <jkuhne@microsoft.com>
Thu, 16 May 2019 04:45:57 +0000 (21:45 -0700)
committerGitHub <noreply@github.com>
Thu, 16 May 2019 04:45:57 +0000 (21:45 -0700)
commit54cf979d70604bf6a44dd65d08110fc480e921c0
tree8753dd4f28a009e527e61fc395b021a0a0074830
parent73721395cb5625fcf5246eb637f8729c69a13431
Fix serialization of Dictionary<string, object> (dotnet/corefx#37686)

We didn't drill into the value type (of the key/value pair, i.e. "object") properly when serializing.

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