JsonDocument should allow the UTF-8 content-BOM from Stream inputs
authorJeremy Barton <jbarton@microsoft.com>
Sat, 9 Mar 2019 03:50:25 +0000 (19:50 -0800)
committerGitHub <noreply@github.com>
Sat, 9 Mar 2019 03:50:25 +0000 (19:50 -0800)
commitee0fbacb333b4ee94e07a18b4be1b4f0bf324232
treee2a2b1a2e906d51a5fbf9c0256ba4965abcfbd92
parent652807ccd17a52325e9399c869741ea92f55f20b
JsonDocument should allow the UTF-8 content-BOM from Stream inputs

Commit migrated from https://github.com/dotnet/corefx/commit/232796d75d9492f273f61df9bb8afc05d33d6dc6
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.Parse.cs
src/libraries/System.Text.Json/src/System/Text/Json/JsonConstants.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs