package
1.3.3
Repository: https://github.com/onflow/cadence.git
Documentation: pkg.go.dev

# Functions

Decode returns a Cadence value decoded from its JSON-encoded representation.
Encode returns the JSON-encoded representation of the given value.
MustEncode returns the JSON-encoded representation of the given value, or panics if the value cannot be represented as JSON.
NewDecoder initializes a Decoder that will decode JSON-encoded bytes from the given io.Reader.
NewEncoder initializes an Encoder that will write JSON-encoded bytes to the given io.Writer.
Prepare traverses the object graph of the provided value and constructs a struct representation that can be marshalled to JSON.
No description provided by the author
WithAllowUnstructuredStaticTypes returns a new Decoder Option which enables or disables if the decoding of a static type as a type ID (cadence.TypeID) is allowed.
WithBackwardsCompatibility returns a new Decoder Option which enables backwards compatibility mode, where the decoding of old versions of the JSON encoding is allowed.

# Structs

A Decoder decodes JSON-encoded representations of Cadence values.
An Encoder converts Cadence values into JSON-encoded bytes.

# Type aliases

No description provided by the author
No description provided by the author