Documentation
¶
Overview ¶
Package jsonutil provides the project's standard-library-compatible Sonic JSON API.
Index ¶
- func Marshal(value any) ([]byte, error)
- func MarshalIndent(value any, prefix string, indent string) ([]byte, error)
- func NewDecoder(reader io.Reader) sonic.Decoder
- func NewEncoder(writer io.Writer) sonic.Encoder
- func Unmarshal(data []byte, value any) error
- func Valid(data []byte) bool
- type RawMessage
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.
func NewDecoder ¶
NewDecoder returns a standard-compatible Sonic streaming decoder.
func NewEncoder ¶
NewEncoder returns a standard-compatible Sonic streaming encoder.
Types ¶
Click to show internal directories.
Click to hide internal directories.