Skip to content

Commit 3bc5784

Browse files
committed
encoding/json: clarify how to encode a cue.Value to JSON
Fixes #3231. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I35402c3f892a38fa57031a48c4900fffbc688fd8 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1215556 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
1 parent 9a44314 commit 3bc5784

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

encoding/json/json.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Package json converts JSON to and from CUE.
15+
// Package json converts JSON to CUE.
16+
// To convert CUE to JSON, use [encoding/json.Marshal] on a [cue.Value].
1617
package json
1718

1819
import (

0 commit comments

Comments
 (0)