Versions in this module Expand all Collapse all v1 v1.0.0 Sep 3, 2026 Changes in this version + var ErrInvalidUTF8 = errors.New("jsonc: invalid UTF-8 in comment") + var ErrUnterminatedBlockComment = errors.New("jsonc: unterminated block comment") + func Compact(dst *bytes.Buffer, src []byte) error + func HTMLEscape(dst *bytes.Buffer, src []byte) + func HasCommentRunes(data []byte) bool + func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error + func Marshal(v any) ([]byte, error) + func MarshalIndent(v any, prefix, indent string) ([]byte, error) + func Sanitize(data []byte) ([]byte, error) + func Unmarshal(data []byte, v any) error + func Valid(data []byte) bool + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Buffered() io.Reader + func (d *Decoder) Decode(v any) error + func (d *Decoder) DisallowUnknownFields() + func (d *Decoder) InputOffset() int64 + func (d *Decoder) More() bool + func (d *Decoder) Token() (Token, error) + func (d *Decoder) UseNumber() + type Delim = stdjson.Delim + type Encoder = stdjson.Encoder + func NewEncoder(w io.Writer) *Encoder + type InvalidUTF8Error = stdjson.InvalidUTF8Error + type InvalidUnmarshalError = stdjson.InvalidUnmarshalError + type JSONCSyntaxError struct + Err error + Offset int64 + func (e *JSONCSyntaxError) Error() string + func (e *JSONCSyntaxError) Unwrap() error + type Marshaler = stdjson.Marshaler + type MarshalerError = stdjson.MarshalerError + type Number = stdjson.Number + type RawMessage = stdjson.RawMessage + type SyntaxError = stdjson.SyntaxError + type Token = stdjson.Token + type UnmarshalFieldError = stdjson.UnmarshalFieldError + type UnmarshalTypeError = stdjson.UnmarshalTypeError + type Unmarshaler = stdjson.Unmarshaler + type UnsupportedTypeError = stdjson.UnsupportedTypeError + type UnsupportedValueError = stdjson.UnsupportedValueError