Implement escaped-character handling in Utf8JsonReader and JsonElement (dotnet/corefx...
authorLayomi Akinrinade <layomia@gmail.com>
Tue, 2 Apr 2019 16:11:37 +0000 (12:11 -0400)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2019 16:11:37 +0000 (12:11 -0400)
commit623886ee9eee0f0d566261a23a0bf8aba2d8d2b1
treed5e57c5a96f9dedce45e6e4c4c884442cce56633
parent2eac99d6e45b1ea386ae7cb444c5b04f5f9a3c7a
Implement escaped-character handling in Utf8JsonReader and JsonElement (dotnet/corefx#36347)

* Implement escaped-character handling in (Try)GetDateTime(Offset) & (Try)GetGuid in Utf8JsonReader and JsonElement

This addresses https://github.com/dotnet/corefx/issues/36202.

* Address review comments

* Address more comments

* Simplify stackalloc logic

* Update fraction digit cap to 15

* Add (Try)GetGuid to JsonElement

* Address review feedback

* Add FormatException documentation

* Address review feedback

* Address review comments

Commit migrated from https://github.com/dotnet/corefx/commit/769c5ace33486fecb480c7bf0a572854c9f33375
src/libraries/System.Text.Json/ref/System.Text.Json.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.cs
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs
src/libraries/System.Text.Json/src/System/Text/Json/JsonConstants.cs
src/libraries/System.Text.Json/src/System/Text/Json/JsonHelpers.Date.cs
src/libraries/System.Text.Json/src/System/Text/Json/JsonHelpers.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/JsonReaderHelper.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.TryGet.cs
src/libraries/System.Text.Json/tests/JsonDateTimeTestData.cs
src/libraries/System.Text.Json/tests/JsonDocumentTests.cs