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.
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
formattag option since this would be more naturally expressed as a typed struct tag.The implementation for
formatwill not be eliminated, but instead be guarded behind agoexperimentflag (e.g.,GOEXPERIMENT=jsonformat. This allows for a path forward for existing users of theformatflag until Go 1.28, which hopefully provides first-class support for equivalent behavior in a different way.