Add string-based WriteAsProperty overload to JsonElement. (dotnet/corefx#37789)
authorAhson Khan <ahkha@microsoft.com>
Mon, 20 May 2019 09:57:17 +0000 (02:57 -0700)
committerGitHub <noreply@github.com>
Mon, 20 May 2019 09:57:17 +0000 (02:57 -0700)
commit475d4d99b7a6c1be507c1418d1f14524e376fca7
tree1017b8d52f2b2b822efb2a53e4cd483a702c1c6e
parent8b4448329fe99941875484bafe4626adb85f6360
Add string-based WriteAsProperty overload to JsonElement. (dotnet/corefx#37789)

* Add string-based WriteAsProperty overload to JsonElement.

* Address PR feedback - remove UTF-16 from the comments.

Commit migrated from https://github.com/dotnet/corefx/commit/189766719a059512a515d488efc5c65c7abf0650
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Write.HandleDictionary.cs
src/libraries/System.Text.Json/tests/JsonElementWriteTests.cs