From c6556b8eb3444b6d5473762ed1082039db7e03b5 Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Mon, 30 Jun 2025 22:17:41 -0700 Subject: encoding/json/v2: add security section to doc This follows up CL 684315 with an expanded section in the v2 doc. Updates #14750 Updates #71845 Change-Id: I1ffa97e030f5f2b709e8142028e3c8e0e38b80ce Reviewed-on: https://go-review.googlesource.com/c/go/+/685195 Auto-Submit: Joseph Tsai Reviewed-by: Damien Neil LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui --- src/encoding/json/jsontext/doc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/encoding/json/jsontext/doc.go') diff --git a/src/encoding/json/jsontext/doc.go b/src/encoding/json/jsontext/doc.go index 8e4bced015..d890692686 100644 --- a/src/encoding/json/jsontext/doc.go +++ b/src/encoding/json/jsontext/doc.go @@ -103,6 +103,10 @@ // RFC 7493 is a stricter subset of RFC 8259 and fully compliant with it. // In particular, it makes specific choices about behavior that RFC 8259 // leaves as undefined in order to ensure greater interoperability. +// +// # Security Considerations +// +// See the "Security Considerations" section in [encoding/json/v2]. package jsontext // requireKeyedLiterals can be embedded in a struct to require keyed literals. -- cgit v1.3