Versions in this module Expand all Collapse all v0 v0.0.6 Apr 14, 2021 v0.0.5 Apr 14, 2021 Changes in this version + const SliceRand + var ErrUnexpectedJSON = errors.New("sha.jsonx: unexpected json structure") + func Marshal(v interface{}) ([]byte, error) + func NewEncoder(w io.Writer) *jsoniter.Encoder + func Unmarshal(v []byte, d interface{}) error + type JSONValue struct + func NewObject(raw []byte) (*JSONValue, error) + func (obj *JSONValue) IsNull(keys ...string) (bool, error) + func (obj *JSONValue) Peek(keys ...string) (interface{}, error) + func (obj *JSONValue) PeekBool(keys ...string) (bool, error) + func (obj *JSONValue) PeekBoolDefault(def bool, keys ...string) bool + func (obj *JSONValue) PeekDefault(def interface{}, keys ...string) interface{} + func (obj *JSONValue) PeekFloat(keys ...string) (float64, error) + func (obj *JSONValue) PeekFloatDefault(def float64, keys ...string) float64 + func (obj *JSONValue) PeekInt(keys ...string) (int64, error) + func (obj *JSONValue) PeekIntDefault(def int64, keys ...string) int64 + func (obj *JSONValue) PeekMap(keys ...string) (map[string]interface{}, error) + func (obj *JSONValue) PeekSlice(keys ...string) ([]interface{}, error) + func (obj *JSONValue) PeekString(keys ...string) (string, error) + func (obj *JSONValue) PeekStringDefault(def string, keys ...string) string + func (obj *JSONValue) PeekTimeFromString(layout string, keys ...string) (time.Time, error) + func (obj *JSONValue) PeekTimeFromUnix(keys ...string) (time.Time, error) + func (obj *JSONValue) String() string