The Morning Dev

Only the news worth knowing

‹
 

Release2 sources

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

top scoring links : programming ·

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

submitted by /u/cekrem [link] [comments]

Timeline

  1. top scoring links : programming

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

  2. DEV Community: backend

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

Full coverage · 2 sources

How do you feel about this?

0 Comments