Skip to content

Update to c9cbeb0a1b08a9830a3d2d4abe0c2108e52f7647#201

Merged
dsnet merged 1 commit intomasterfrom
update
Feb 13, 2026
Merged

Update to c9cbeb0a1b08a9830a3d2d4abe0c2108e52f7647#201
dsnet merged 1 commit intomasterfrom
update

Conversation

@dsnet
Copy link
Collaborator

@dsnet dsnet commented Feb 13, 2026

WARNING: This commit contains breaking changes.

This removes support for the unknown tag option and the DiscardUnknownMembers marshal option.

The unknown tag option semantics are a bit too subtle even for experienced Go programmers to understand. Remove support for it. The exact same feature (or something similar) can be added back into a future release of json/v2.

We already support the inline tag option,
which can handle most cases of what someone might want to do with unknown fields (such as preserve them).

This pulls in the following changes:

WARNING: This commit contains breaking changes.

This removes support for the `unknown` tag option and
the DiscardUnknownMembers marshal option.

The `unknown` tag option semantics are a bit too subtle
even for experienced Go programmers to understand.
Remove support for it. The exact same feature (or something similar)
can be added back into a future release of json/v2.

We already support the `inline` tag option,
which can handle most cases of what someone might want to do
with unknown fields (such as preserve them).

This pulls in the following changes:
* (https://go.dev/cl/741320) encoding/json/v2: remove `unknown` tag option and DiscardUnknownMembers
@dsnet dsnet merged commit 2eb0728 into master Feb 13, 2026
8 checks passed
@dsnet dsnet deleted the update branch February 13, 2026 22:18
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.

1 participant