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.4.0-rc.1
- Published
- May 19, 2021
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 1 hour ago –
Tools for package owners.