Go 1.27 releases encoding/json/v2 and jsontext
The Go project has introduced the stable encoding/json/v2 and encoding/json/jsontext packages in Go 1.27 to address long-standing behavioral and performance limitations in the original JSON API. The new v2 packages separate syntax from semantics, improve duplicate key safety, reject invalid UTF-8, and provide faster unmarshaling performance through streaming token processing. Both packages maintain backward compatibility by implementing v1 in terms of v2 options. Open article →