Skip to content

Experimental encoding/json/v2 port#20

Draft
DavidBuchanan314 wants to merge 4 commits into
mainfrom
jsonv2
Draft

Experimental encoding/json/v2 port#20
DavidBuchanan314 wants to merge 4 commits into
mainfrom
jsonv2

Conversation

@DavidBuchanan314

@DavidBuchanan314 DavidBuchanan314 commented Nov 15, 2025

Copy link
Copy Markdown
Collaborator

Fixes #6 (extra fields are easy to reject with v1, but case sensitivity is not easy)

Requires go v1.25 and GOEXPERIMENT=jsonv2 env to build or test. (The encoding/json/v2 package is "experimental" so we probably don't want to ship this just yet)

I should also add some relevant test cases.

@bnewbold

bnewbold commented Feb 3, 2026

Copy link
Copy Markdown
Member

Very excited about this!

As a timeline update, it looks like json/v2 is not expected to be included in the Go v1.26 (it will still be behind a GOEXPERIMENT flag). So this PR probably won't be merged before September 2026 or so (assuming it does land in the Go v1.27, which is uncertain).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON unmarshalling silently discards extra fields

2 participants