The Morning Dev

Only the news worth knowing

‹
 

Release3 sources

The Go team explains Go's new JSON API

Golang Weekly ·

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

  1. Golang Weekly

    The Go team explains Go's new JSON API

  2. top scoring links : programming

    Go 1.27: encoding/json/v2, Stricter Defaults, and Finally [] for Nil Slices · cekrem.github.io

  3. DEV Community: backend

    1.27's New JSON APIs: What Changes for Backend and Mobile Teams

Full coverage · 3 sources

How do you feel about this?

0 Comments