Documentation
¶
Index ¶
- Variables
- func IsValidBytes(data []byte) bool
- func IsValidStr(str string) bool
- func Marshal(v interface{}) ([]byte, error)
- func MarshalToString(v interface{}) (string, error)
- func ParseBytes(data []byte) gjson.Result
- func ParseStr(data string) gjson.Result
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromJson(b interface{}, v interface{}) error
- func UnmarshalStr(str string, v interface{}) error
- func UseNumber()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
JSON = jsoniter.ConfigCompatibleWithStandardLibrary
)
Functions ¶
func MarshalToString ¶
MarshalToString returns the JSON encoding to string of v.
func ParseBytes ¶
ParseBytes parses the JSON bytes and returns a gjson.Result which allows chaining further operations.
func ParseStr ¶
ParseStr parses the JSON string and returns a gjson.Result which allows chaining further operations.
func Unmarshal ¶
Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.
func UnmarshalFromJson ¶
func UnmarshalFromJson(b interface{}, v interface{}) error
UnmarshalFromJson unmarshal imini to v.
func UnmarshalStr ¶
UnmarshalStr unmarshal string to v.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.