Documentation
¶
Overview ¶
Package jsonutil provides the project's standard-compatible JSON API. It uses Sonic on supported 64-bit architectures and encoding/json elsewhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal returns the JSON encoding of value using Sonic's standard-compatible configuration.
func MarshalIndent ¶
MarshalIndent returns the indented JSON encoding of value using Sonic's standard-compatible configuration.
Types ¶
type Decoder ¶ added in v0.15.1
type Decoder interface {
Decode(any) error
Buffered() io.Reader
DisallowUnknownFields()
More() bool
UseNumber()
}
Decoder describes the streaming decoder operations used by the project.
func NewDecoder ¶
NewDecoder returns a standard-compatible Sonic streaming decoder.
type Encoder ¶ added in v0.15.1
Encoder describes the streaming encoder operations used by the project.
func NewEncoder ¶
NewEncoder returns a standard-compatible Sonic streaming encoder.
Click to show internal directories.
Click to hide internal directories.