]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc: add release notes for changes to encoding/json package
authorJoe Tsai <joetsai@digital-static.net>
Wed, 6 Dec 2023 22:03:17 +0000 (14:03 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 6 Dec 2023 23:34:22 +0000 (23:34 +0000)
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 <joetsai@digital-static.net>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
doc/go1.22.html

index 07901c82ab272a1f9cd8da5c83842d85296ab730..2f08803221eb61aa67c1a3378790b62ee59bb25c 100644 (file)
@@ -409,6 +409,17 @@ defer func() {
   </dd>
 </dl><!-- encoding -->
 
+<dl id="encoding/json"><dt><a href="/pkg/encoding/json/">encoding/json</a></dt>
+  <dd>
+    <p><!-- https://go.dev/cl/521675 -->
+      Marshaling and encoding functionality now escapes
+      <code>'\b'</code> and <code>'\f'</code> characters as
+      <code>\b</code> and <code>\f</code> instead of
+      <code>\u0008</code> and <code>\u000c</code>.
+    </p>
+  </dd>
+</dl><!-- encoding/json -->
+
 <dl id="go/ast"><dt><a href="/pkg/go/ast/">go/ast</a></dt>
   <dd>
     <p><!-- https://go.dev/issue/52463, https://go/dev/cl/504915 -->