Versions in this module Expand all Collapse all v0 v0.2.0 Jan 24, 2020 Changes in this version type Decoder + func (dec *Decoder) InputOffset() int64 + type MarshalerError struct + Err error + Type reflect.Type + func (e *MarshalerError) Error() string + func (e *MarshalerError) Unwrap() error v0.1.0 Nov 5, 2019 Changes in this version + 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) DisallowUnknownFields() + func (dec *Decoder) More() bool + func (dec *Decoder) Token() (json.Token, error) + func (dec *Decoder) UseNumber() + 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) + type JSON struct + func DisallowUnknownFields() *JSON + func New(opts ...Option) *JSON + func OmitEmpty() *JSON + func UseNumber() *JSON + func (c *JSON) Marshal(v interface{}) ([]byte, error) + func (c *JSON) MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func (c *JSON) NewDecoder(r io.Reader) *Decoder + func (c *JSON) NewEncoder(w io.Writer) *Encoder + func (c *JSON) Unmarshal(data []byte, v interface{}) error + func (j *JSON) DisallowUnknownFields() *JSON + func (j *JSON) EscapeHTML(on bool) *JSON + func (j *JSON) OmitEmpty() *JSON + func (j *JSON) UseNumber() *JSON + type Option func(Options) + func KeyEncodeFn(fn func(string) string) Option + type Options interface + SetKeyEncodeFn func(func(string) string) + type SyntaxError struct + Offset int64 + func (e *SyntaxError) Error() string