Documentation ¶
Overview ¶
Package jsonutil uses json-iterator to get better performance than standard encoding/json package. And it's 100% compatible with encoding/json.
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func MarshalToString(v interface{}) (string, error)
- func NewDecoder(r io.Reader) *jsoniter.Decoder
- func NewEncoder(w io.Writer) *jsoniter.Encoder
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromString(data string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIndent ¶
func MarshalToString ¶
func UnmarshalFromString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.