Skip to content

Commit 78e442e

Browse files
committed
doc/go1.16: add encoding/json note for tag change
For #40700 Fixes #42898 Change-Id: I652657ff8d6cce20bf868f0b1101d723d3f704d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/274614 Trust: Joe Tsai <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent f26f227 commit 78e442e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/go1.16.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
456456
<dl id="encoding/json"><dt><a href="/pkg/encoding/json/">encoding/json</a></dt>
457457
<dd>
458458
<p><!-- CL 234818 -->
459-
TODO: <a href="https://golang.org/cl/234818">https://golang.org/cl/234818</a>: allow semicolon in field key / struct tag
459+
The <code>json</code> struct field tags understood by
460+
<a href="/pkg/encoding/json/#Marshal"><code>Marshal</code></a>,
461+
<a href="/pkg/encoding/json/#Unmarshal"><code>Unmarshal</code></a>,
462+
and related functionality now permit semicolon characters within
463+
a JSON object name for a Go struct field.
460464
</p>
461465
</dd>
462466
</dl><!-- encoding/json -->

0 commit comments

Comments
 (0)