Skip to content- Sources: primary, discussion
- Summary: The Go blog said on 2026-11-04 that encoding/json/v2 and encoding/json/jsontext are stable and generally available in Go 1.27. By default v2 marshals nil slices and maps as empty arrays and objects. Unmarshal is up to 10x faster than v1, Marshal is roughly at parity, and v1 is now implemented as v2 with compatibility options, so packages on either version can work together.
- Why it matters: Teams can migrate call sites gradually, but code that relies on case-insensitive field matching, duplicate keys or null for nil slices will break under v2 defaults.