Discover Packages
github.com/solo-io/cue
encoding
json
package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Nov 29, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package json converts JSON to and from CUE.
Decode parses JSON-encoded data to a CUE value, using path for position
information.
Deprecated: use Extract and build using cue.Context.BuildExpr.
Extract parses JSON-encoded data to a CUE expression, using path for
position information.
Valid reports whether data is a valid JSON encoding.
Validate validates JSON and confirms it matches the constraints
specified by v.
A Decoder converts JSON values to CUE.
NewDecoder configures a JSON decoder. The path is used to associate position
information with each node. The runtime may be nil if the decoder
is only used to extract to CUE ast objects.
The runtime may be nil if Decode isn't used.
Decode converts the current JSON value to a CUE instance. It returns io.EOF
if the input has been exhausted.
Deprecated: use Extract and build with cue.Context.BuildExpr.
Extract converts the current JSON value to a CUE ast. It returns io.EOF
if the input has been exhausted.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.