package json
import "cuelang.org/go/internal/encoding/json"
Index ¶
Functions ¶
func Encode ¶
Encode converts a CUE AST to JSON.
The given file must only contain values that can be directly supported by JSON:
Type Restrictions BasicLit File no imports, aliases, or definitions StructLit no embeddings, aliases, or definitions List Field must be regular; label must be a BasicLit or Ident
Comments and attributes are ignored.
Source Files ¶
encode.go
- Version
- v0.5.0-rc.1
- Published
- Mar 31, 2023
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 1 hour ago –
Tools for package owners.