From 2b4425759cd90edfb8f4ff4e8be397062ba99d91 Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Wed, 6 Dec 2023 14:03:17 -0800 Subject: [PATCH] doc: add release notes for changes to encoding/json package The escaping of certain control characters has been changed. The change is compliant with the JSON specification. The JSON package never promised exactly how JSON formatted and has historically changed its representation over time. Change-Id: I8b23f503cfff86c460f642693b50dee24038fb0d Reviewed-on: https://go-review.googlesource.com/c/go/+/548075 Run-TryBot: Joseph Tsai Auto-Submit: Joseph Tsai LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov TryBot-Result: Gopher Robot Reviewed-by: Robert Griesemer --- doc/go1.22.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/go1.22.html b/doc/go1.22.html index 07901c82ab..2f08803221 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -409,6 +409,17 @@ defer func() { +
encoding/json
+
+

+ Marshaling and encoding functionality now escapes + '\b' and '\f' characters as + \b and \f instead of + \u0008 and \u000c. +

+
+
+
go/ast