Skip to content

[FEATURE] Upgrade to encoding/json/v2 #905

Description

@sean-

As soon as go.mod is bumped to 1.27.X (#904), upgrade from encoding/json to encoding/json/v2 for the performance and memory benefits from the upgrade.

Users stumbling across this issue who are already running go >= 1.27.0 (including rc1) should kick the tires on building their app with GOEXPERIMENT=jsonv2.

What alternatives have you considered?

  • Embed a 3rd-party json library for parsing (e.g. gjson?)
  • Embed our own json scanner

Do you have any additional context?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions