Documentation
¶
Overview ¶
Package json contains a codec that uses Go's standard JSON marshaling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCodec = Codec{}
DefaultCodec is a [marshaler.Codec] that marshals values using Go's standard JSON implementation.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct{}
Codec is an implementation of [marshaler.Codec] that uses Go's standard JSON implementation.
func (Codec) BasicMediaType ¶
BasicMediaType returns the type and subtype portion of the media-type used to identify data encoded by this codec.
func (Codec) PortableNames ¶
PortableNames returns a map of type to its portable name for each of the given types that the codec supports.
Click to show internal directories.
Click to hide internal directories.