Versions in this module Expand all Collapse all v0 v0.2.0 Apr 2, 2026 Changes in this version type Entry + Comment string + InlineComment string type OrderedMap + func (m *OrderedMap) SetWithComment(key string, value any, comment, inlineComment string) v0.1.0 Apr 1, 2026 Changes in this version + func Marshal(v any) ([]byte, error) + func MarshalIndent(v any, prefix, indent string) ([]byte, error) + func Unmarshal(data []byte, v any) error + func Valid(data []byte) bool + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode(v any) error + func (dec *Decoder) DisallowUnknownFields() + func (dec *Decoder) UseNumber() + func (dec *Decoder) UseOrderedMap() + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Encode(v any) error + type Entry struct + Key string + Value any + type InvalidUnmarshalError struct + Type reflect.Type + func (e *InvalidUnmarshalError) Error() string + type Marshaler interface + MarshalJSON5 func() ([]byte, error) + type MarshalerError struct + Err error + Type reflect.Type + func (e *MarshalerError) Error() string + func (e *MarshalerError) Unwrap() error + type Number string + func (n Number) Float64() (float64, error) + func (n Number) Int64() (int64, error) + func (n Number) String() string + type OrderedMap struct + func NewOrderedMap() *OrderedMap + func (m *OrderedMap) Delete(key string) + func (m *OrderedMap) Entries() []Entry + func (m *OrderedMap) Get(key string) (any, bool) + func (m *OrderedMap) Keys() []string + func (m *OrderedMap) Len() int + func (m *OrderedMap) MarshalJSON5() ([]byte, error) + func (m *OrderedMap) Set(key string, value any) + func (m *OrderedMap) UnmarshalJSON5(data []byte) error + type RawMessage []byte + func (m *RawMessage) UnmarshalJSON5(data []byte) error + func (m RawMessage) MarshalJSON5() ([]byte, error) + type SyntaxError struct + Offset int64 + func (e *SyntaxError) Error() string + type UnmarshalTypeError struct + Field string + Offset int64 + Struct string + Type reflect.Type + Value string + func (e *UnmarshalTypeError) Error() string + type Unmarshaler interface + UnmarshalJSON5 func([]byte) error