Release3 sources
The Go team explains Go's new JSON API

The Brief
- Go 1.27 adds two new JSON APIs, according to a DEV Community article.
- The release includes encoding/json/v2 and stricter defaults.
- Nil slices are now marshalled as [] rather than null.
Why it matters
Code that relies on encoding/json behaviour, including how nil slices serialise and how strictly input is parsed, may change output or start rejecting input after upgrading to Go 1.27.
Who’s affected
- Go backend developers
- Go mobile teams that use encoding/json
#623 — November 6, 2026 Read the Web Version Go Weekly The Official Guide to encoding/json/v2 (and Migrating to It) — Now that encoding/json/v2 and jsontext are stable, the Go team has a refreshed introduction to how they work, including how v1 and v2 interoperate. There's also…
Timeline
Full coverage · 3 sources
- 8h ago ↗
DEV Community: backend
1.27's New JSON APIs: What Changes for Backend and Mobile Teams - 9h ago ↗
top scoring links : programming
Go 1.27: encoding/json/v2, Stricter Defaults, and Finally [] for Nil Slices · cekrem.github.io - 18h ago ↗
Golang Weekly
The Go team explains Go's new JSON API