encoding/json
2 articles in the last 30 days.
-
A new Go API for JSON
The encoding/json/v2 and encoding/json/jsontext packages become stable in Go 1.27. The new API fixes long-standing behavior issues, such as accepting invalid UTF-8 and duplicate object member names.
-
A new Go API for JSON
Go 1.27 makes the encoding/json/v2 and encoding/json/jsontext packages stable. The new defaults reject invalid UTF-8 and duplicate object names, and the post explains the older package's flaws.