Versions in this module Expand all Collapse all v0 v0.1.16 Sep 8, 2020 Changes in this version + func Append(b []byte, x interface{}, flags AppendFlags) ([]byte, error) + 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(x interface{}) ([]byte, error) + func MarshalIndent(x interface{}, prefix, indent string) ([]byte, error) + func Parse(b []byte, x interface{}, flags ParseFlags) ([]byte, error) + func Unmarshal(b []byte, x interface{}) error + func Valid(data []byte) bool + type AppendFlags int + const EscapeHTML + const SortMapKeys + const TrustRawMessage + 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) DisallowUnknownFields() + func (dec *Decoder) DontCopyNumber() + func (dec *Decoder) DontCopyRawMessage() + func (dec *Decoder) DontCopyString() + func (dec *Decoder) DontMatchCaseInsensitiveStructFields() + func (dec *Decoder) InputOffset() int64 + func (dec *Decoder) UseNumber() + func (dec *Decoder) ZeroCopy() + type Delim = json.Delim + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Encode(v interface{}) error + func (enc *Encoder) SetEscapeHTML(on bool) + func (enc *Encoder) SetIndent(prefix, indent string) + func (enc *Encoder) SetSortMapKeys(on bool) + func (enc *Encoder) SetTrustRawMessage(on bool) + type InvalidUTF8Error = json.InvalidUTF8Error + type InvalidUnmarshalError = json.InvalidUnmarshalError + type Marshaler = json.Marshaler + type MarshalerError = json.MarshalerError + type Number = json.Number + type ParseFlags int + const DisallowUnknownFields + const DontCopyNumber + const DontCopyRawMessage + const DontCopyString + const DontMatchCaseInsensitiveStructFields + const UseNumber + const ZeroCopy + type RawMessage = json.RawMessage + type RawValue []byte + func (v RawValue) AppendUnquote(b []byte) []byte + func (v RawValue) False() bool + func (v RawValue) Null() bool + func (v RawValue) Number() bool + func (v RawValue) String() bool + func (v RawValue) True() bool + func (v RawValue) Unquote() []byte + type SyntaxError = json.SyntaxError + type Token = json.Token + type Tokenizer struct + Delim Delim + Depth int + Err error + Index int + IsKey bool + Value RawValue + func NewTokenizer(b []byte) *Tokenizer + func (t *Tokenizer) Next() bool + func (t *Tokenizer) Reset(b []byte) + type UnmarshalFieldError = json.UnmarshalFieldError + type UnmarshalTypeError = json.UnmarshalTypeError + type Unmarshaler = json.Unmarshaler + type UnsupportedTypeError = json.UnsupportedTypeError + type UnsupportedValueError = json.UnsupportedValueError