Documentation ¶
Overview ¶
Package jsonx - an extension of json-iterator library.
Index ¶
- func Decode[T any](src string) (v T, err error)
- func Encode[T any](v T) string
- func Marshal(v any) ([]byte, error)
- func MarshalIndent(v any, prefix, indent string) ([]byte, error)
- func MarshalToString(v any) (string, error)
- func Unmarshal(data []byte, v any) error
- func UnmarshalFromString(str string, v any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIndent ¶
MarshalIndent - same as json.MarshalIndent.
func MarshalToString ¶
MarshalToString - same as Marshal but returns a string value.
func UnmarshalFromString ¶
UnmarshalFromString - same as Unmarshal but reads value from a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.