encoding-json

Tag

Cards List
#encoding-json

Go JSON v2 Migration: What Breaks in Go 1.27

Lobsters Hottest ↗ · 2026-10-03 Cached

Go 1.27 ships `encoding/json/v2` in the standard library and quietly re-implements the old `encoding/json` package on top of it, changing error strings and flipping defaults such as nil slices becoming `[]`, case-sensitive field matching, duplicate key rejection, and `time.Duration` no longer marshaling when v2 is imported directly.

0 favorites 0 likes
← Back to home

Submit Feedback