Skip to content

encoding/json/v2: remove format tag option #79071

Description

@dsnet

Proposal Details

With Go 1.28 prospectively having typed struct tags in some form or another, the json/v2 working group decided to remove support for the format tag option since this would be more naturally expressed as a typed struct tag.

The implementation for format will not be eliminated, but instead be guarded behind a goexperiment flag (e.g., GOEXPERIMENT=jsonformat. This allows for a path forward for existing users of the format flag until Go 1.28, which hopefully provides first-class support for equivalent behavior in a different way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a tool

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions