Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error + func Marshal(v interface{}) ([]byte, error) + func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + func UnmarshalHandleDoubleEncode(bs []byte, v interface{}) error + func Valid(data []byte) bool + type Decoder interface + Decode func(v interface{}) error + func NewDecoder(reader io.Reader) Decoder + type Encoder interface + Encode func(v interface{}) error + func NewEncoder(writer io.Writer) Encoder + type Interface interface + Indent func(dst *bytes.Buffer, src []byte, prefix, indent string) error + Marshal func(v interface{}) ([]byte, error) + NewDecoder func(reader io.Reader) Decoder + NewEncoder func(writer io.Writer) Encoder + Unmarshal func(data []byte, v interface{}) error + var DefaultJSONHandler Interface = JSONiter{ ... } + type JSONiter struct + func (j JSONiter) Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error + func (j JSONiter) Marshal(v interface{}) ([]byte, error) + func (j JSONiter) NewDecoder(reader io.Reader) Decoder + func (j JSONiter) NewEncoder(writer io.Writer) Encoder + func (j JSONiter) Unmarshal(data []byte, v interface{}) error + type StdJSON struct + func (StdJSON) Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error + func (StdJSON) Marshal(v interface{}) ([]byte, error) + func (StdJSON) NewDecoder(reader io.Reader) Decoder + func (StdJSON) NewEncoder(writer io.Writer) Encoder + func (StdJSON) Unmarshal(data []byte, v interface{}) error