aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/jsontext/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/json/jsontext/doc.go')
-rw-r--r--src/encoding/json/jsontext/doc.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/encoding/json/jsontext/doc.go b/src/encoding/json/jsontext/doc.go
index 755305151f..8a21ba70bd 100644
--- a/src/encoding/json/jsontext/doc.go
+++ b/src/encoding/json/jsontext/doc.go
@@ -10,6 +10,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/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.
//