Documentation ¶
Index ¶
- func Bytes(v any) []byte
- func From(s string, v any)
- func Goccy() goccy
- func Jsoniter() jsonIter
- func Pretty(v any) string
- func STD() std
- func SafeConfig() jsoniter.API
- func SafeDecoder(rd io.Reader) util.JSONDecoder
- func SafeEncoder(wr io.Writer) util.JSONEncoder
- func SafeMarshal(v any) ([]byte, error)
- func SafeMarshalPretty(v any) ([]byte, error)
- func SafeUnmarshal(b []byte, v any) error
- func String(v any) string
- type Expansion
- type ExpansionOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeConfig ¶ added in v1.2.29
func SafeDecoder ¶
func SafeDecoder(rd io.Reader) util.JSONDecoder
func SafeEncoder ¶
func SafeEncoder(wr io.Writer) util.JSONEncoder
func SafeMarshal ¶
func SafeMarshalPretty ¶
func SafeUnmarshal ¶
Types ¶
type Expansion ¶ added in v1.2.22
type Expansion struct {
// contains filtered or unexported fields
}
Expansion parse ob to ov expand ov to nv marshal nv to nb
func ExpandFromBytes ¶ added in v1.2.22
func ExpandFromBytes(b []byte, o ...ExpansionOption) *Expansion
type ExpansionOption ¶ added in v1.2.22
type ExpansionOption func(e *Expansion)
func WithIgnoreNull ¶ added in v1.2.22
func WithIgnoreNull() ExpansionOption
Click to show internal directories.
Click to hide internal directories.