]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json/jsontext, encoding/json/v2: document experimental nature
authorDamien Neil <dneil@google.com>
Tue, 10 Jun 2025 20:55:09 +0000 (13:55 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 11 Jun 2025 21:17:53 +0000 (14:17 -0700)
Change-Id: I7b2c391749e0113e006f37b2ac1ebfe3ee0a4e0e
Reviewed-on: https://go-review.googlesource.com/c/go/+/680715
TryBot-Bypass: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Damien Neil <dneil@google.com>

src/encoding/json/jsontext/doc.go
src/encoding/json/v2/doc.go

index 755305151fb80e1702f71594a623a157393e58c7..8a21ba70bd160150d8cdd716f36c1fd719a5236b 100644 (file)
 // primitive data types such as booleans, strings, and numbers,
 // in addition to structured data types such as objects and arrays.
 //
+// This package (encoding/json/jsontxt) is experimental,
+// and not subject to the Go 1 compatibility promise.
+// It only exists when building with the GOEXPERIMENT=jsonv2 environment variable set.
+// Most users should use [encoding/json].
+//
 // The [Encoder] and [Decoder] types are used to encode or decode
 // a stream of JSON tokens or values.
 //
index 8dd0b138f5eed36dd61d068113adafd879f4f003..203139754c203449fde420f9886b0110ffdf9e38 100644 (file)
@@ -9,6 +9,11 @@
 // primitive data types such as booleans, strings, and numbers,
 // in addition to structured data types such as objects and arrays.
 //
+// This package (encoding/json/v2) is experimental,
+// and not subject to the Go 1 compatibility promise.
+// It only exists when building with the GOEXPERIMENT=jsonv2 environment variable set.
+// Most users should use [encoding/json].
+//
 // [Marshal] and [Unmarshal] encode and decode Go values
 // to/from JSON text contained within a []byte.
 // [MarshalWrite] and [UnmarshalRead] operate on JSON text