Skip to content

encoding/json/v2: possibly clarify retention prohibitions in documentation [1.27 backport] #82631

Open

Description

@gopherbot

@thepudds requested issue #80885 to be considered for backport to the next 1.27 minor release.

@gopherbot, please open a backport issue for https://go.dev/cl/817040. This is mostly a clarification for json/v2 to add an explicit documented restriction regarding retaining a pointer, where retaining that pointer is already unwise. It also keeps the door open for some future possible optimizations for json/v2 unmarshalling. @dmitshur and others previously said this would likely be reasonable to backport.

Activity

  1. added this to the Go1.27.4 milestone on Oct 27, 2026
  2. cherrymui commented on Nov 3, 2026

    @cherrymui
    Member

    This is okay for backporting. We can backport CL 854947 for the marshal side together (which will "fixes" #80885).

  3. modified the milestones: Go1.27.4, Go1.27.5 on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CherryPickCandidateUsed during the release process for point releasesDocumentationIssues describing a change to documentation.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions