Documentation ¶ Index ¶ type Encoder func NewEncoder() *Encoder func (e *Encoder) Decode(r io.Reader, v any) error func (e *Encoder) Encode(w io.Writer, v any) error type Marshaller func NewMarshaller() *Marshaller func (m *Marshaller) Marshal(v any) ([]byte, error) func (m *Marshaller) Unmarshal(data []byte, v any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Encoder ¶ added in v1.282.0 type Encoder struct{} Encoder for json. func NewEncoder ¶ added in v1.282.0 func NewEncoder() *Encoder NewEncoder for json. func (*Encoder) Decode ¶ added in v1.282.0 func (e *Encoder) Decode(r io.Reader, v any) error func (*Encoder) Encode ¶ added in v1.282.0 func (e *Encoder) Encode(w io.Writer, v any) error type Marshaller ¶ type Marshaller struct{} Marshaller for json. func NewMarshaller ¶ func NewMarshaller() *Marshaller NewMarshaller for json. func (*Marshaller) Marshal ¶ func (m *Marshaller) Marshal(v any) ([]byte, error) func (*Marshaller) Unmarshal ¶ func (m *Marshaller) Unmarshal(data []byte, v any) error Source Files ¶ View all Source files json.go Click to show internal directories. Click to hide internal directories.