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.2.0
- Published
- May 20, 2020
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 41 minutes ago –
Tools for package owners.