json

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigDefault   = sonic.ConfigDefault
	Marshal         = ConfigDefault.Marshal
	Unmarshal       = ConfigDefault.Unmarshal
	MarshalIndent   = ConfigDefault.MarshalIndent
	MarshalString   = ConfigDefault.MarshalToString
	UnmarshalString = ConfigDefault.UnmarshalFromString
	Valid           = ConfigDefault.Valid
)

Functions

func MarshalToString

func MarshalToString(v any) (string, error)

MarshalToString marshals data to JSON string using Sonic for ultra-fast performance

Types

type Decoder

type Decoder = sonic.Decoder

func NewDecoder

func NewDecoder(r io.Reader) Decoder

type Encoder

type Encoder = sonic.Encoder

func NewEncoder

func NewEncoder(w io.Writer) Encoder

type RawMessage

type RawMessage = json.RawMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL