-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
For #74322, we decided that that proposal could be decided after the main encoding/json/v2 proposal is complete provided that the various MarshalJSONTo, etc methods document:
- Callers should prefer to use
encoding/json/v2.Marshalrather than calling the methods directly, asMarshalwill handle the special cases internally. - If callers do call
MarshalJSONTodirectly, there is a set of sentinel errors the method may return which they are responsible for handling.
I'm filing this issue to track adding this documentation, as #74322 is now marked post-proposal.
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Type
Projects
Status
Needs review