Skip to content

Unify the JsonDocument and Utf8JsonReader handling of DateTime/Offset#113929

Merged
stephentoub merged 2 commits into
dotnet:mainfrom
IDisposable:unify-json-date-parsing
Jun 3, 2025
Merged

Unify the JsonDocument and Utf8JsonReader handling of DateTime/Offset#113929
stephentoub merged 2 commits into
dotnet:mainfrom
IDisposable:unify-json-date-parsing

Conversation

@IDisposable

Copy link
Copy Markdown
Contributor

Since so much of the code is identical, move it to JsonReaderHelper and call into it from JsonDocument.cs and Utf8JsonReader.TryGet.cs
Closes #28931

Since so much of the code is identical, move it to JsonReaderHelper
Closes dotnet#28931
@stephentoub
stephentoub merged commit a2c9e7b into dotnet:main Jun 3, 2025
@stephentoub

Copy link
Copy Markdown
Member

Thanks

@IDisposable
IDisposable deleted the unify-json-date-parsing branch June 3, 2025 02:07
mwadams added a commit to mwadams/Corvus.Text.Json that referenced this pull request Jun 22, 2025
Also extend to the other date/time/period types from NodaTime that we support in the same direct way.
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.Json community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract Utf8Parser date helpers to static helper class

3 participants