# Functions
Compact appends to dst the JSON-encoded src with insignificant space characters elided.
Indent appends to dst an indented form of the JSON-encoded src.
Marshal returns the JSON encoding of v, and support truncate.
MarshalIndent is like Marshal but applies Indent to format the output.
NewEncoder returns a new encoder that writes to w.
Valid reports whether data is a valid JSON encoding.
WithEncOptsEscapeHTML sets escapeHTML in encOpts.
WithEncOptsOmitEmpty sets omitEmpty in encOpts.
WithEncOptsQuoted sets quoted in encOpts.
WithEncOptsTruncate sets truncate in encOpts.
WithEncOptsTruncateBytes sets truncateBytes in encOpts.
WithEncOptsTruncateMap sets truncateMap in encOpts.
WithEncOptsTruncateSliceOrArray sets truncateSliceOrArray in encOpts.
WithEncOptsTruncateString sets truncateString in encOpts.
WithEncOptsTruncateUrl sets truncateUrl in encOpts.
# Structs
EmptyEncOptsOption does not alter the configuration.
An Encoder writes JSON values to an output stream.
A SyntaxError is a description of a JSON syntax error.
# Interfaces
A EncOptsOption sets options.
# Type aliases
EncOptsOptionFunc wraps a function that modifies encOpts into an implementation of the EncOptsOption interface.
Marshaler is the interface implemented by types that can marshal themselves into valid JSON.
A MarshalerError represents an error from calling a MarshalJSON or MarshalText method.
A Number represents a JSON number literal.
An UnsupportedTypeError is returned by Marshal when attempting to encode an unsupported value type.
An UnsupportedValueError is returned by Marshal when attempting to encode an unsupported value.