Versions in this module Expand all Collapse all v0 v0.0.1 Mar 12, 2019 Changes in this version + func Compact(dst *bytes.Buffer, src []byte) error + func HTMLEscape(dst *bytes.Buffer, src []byte) + 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 + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Buffered() io.Reader + func (dec *Decoder) Decode(v interface{}) error + func (dec *Decoder) Extend(ext *Extension) + func (dec *Decoder) More() bool + func (dec *Decoder) Token() (Token, error) + func (dec *Decoder) UseNumber() + type Delim rune + func (d Delim) String() string + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) DisableHTMLEscaping() + func (enc *Encoder) Encode(v interface{}) error + func (enc *Encoder) Extend(ext *Extension) + func (enc *Encoder) Indent(prefix, indent string) + type Extension struct + func (e *Extension) DecodeConst(name string, value interface{}) + func (e *Extension) DecodeFunc(name string, key string, args ...string) + func (e *Extension) DecodeKeyed(key string, decode func(data []byte) (interface{}, error)) + func (e *Extension) DecodeTrailingCommas(accept bool) + func (e *Extension) DecodeUnquotedKeys(accept bool) + func (e *Extension) EncodeType(sample interface{}, encode func(v interface{}) ([]byte, error)) + func (e *Extension) Extend(ext *Extension) + type InvalidUTF8Error struct + S string + func (e *InvalidUTF8Error) Error() string + type InvalidUnmarshalError struct + Type reflect.Type + func (e *InvalidUnmarshalError) Error() string + type Marshaler interface + MarshalJSON func() ([]byte, error) + type MarshalerError struct + Err error + Type reflect.Type + func (e *MarshalerError) Error() string + type Number string + func (n Number) Float64() (float64, error) + func (n Number) Int64() (int64, error) + func (n Number) String() string + type RawMessage []byte + func (m *RawMessage) MarshalJSON() ([]byte, error) + func (m *RawMessage) UnmarshalJSON(data []byte) error + type SyntaxError struct + Offset int64 + func (e *SyntaxError) Error() string + type Token interface + type UnmarshalFieldError struct + Field reflect.StructField + Key string + Type reflect.Type + func (e *UnmarshalFieldError) Error() string + type UnmarshalTypeError struct + Offset int64 + Type reflect.Type + Value string + func (e *UnmarshalTypeError) Error() string + type Unmarshaler interface + UnmarshalJSON func([]byte) error + type UnsupportedTypeError struct + Type reflect.Type + func (e *UnsupportedTypeError) Error() string + type UnsupportedValueError struct + Str string + Value reflect.Value + func (e *UnsupportedValueError) Error() string