Documentation ¶
Index ¶
- type JsonObject
- func (j JsonObject) Each(cb func(jo JsonObject), keys ...string) (int, error)
- func (j JsonObject) Get(keys ...string) ([]byte, jsonparser.ValueType, int, error)
- func (j JsonObject) GetBoolean(keys ...string) (bool, error)
- func (j JsonObject) GetFloat(keys ...string) (float64, error)
- func (j JsonObject) GetInt(keys ...string) (int64, error)
- func (j JsonObject) GetJsonObject(keys ...string) (JsonObject, error)
- func (j JsonObject) GetJsonObjectArray(keys ...string) ([]JsonObject, error)
- func (j JsonObject) GetString(keys ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonObject ¶
type JsonObject struct {
Buff []byte
}
func (JsonObject) Each ¶
func (j JsonObject) Each(cb func(jo JsonObject), keys ...string) (int, error)
Each 遍历json中的array
func (JsonObject) Get ¶
func (j JsonObject) Get(keys ...string) ([]byte, jsonparser.ValueType, int, error)
Get 获取对象
func (JsonObject) GetBoolean ¶
func (j JsonObject) GetBoolean(keys ...string) (bool, error)
GetBoolean 获取bool值
func (JsonObject) GetFloat ¶
func (j JsonObject) GetFloat(keys ...string) (float64, error)
GetFloat 获取float值
func (JsonObject) GetInt ¶
func (j JsonObject) GetInt(keys ...string) (int64, error)
GetInt 获取int64值
func (JsonObject) GetJsonObject ¶
func (j JsonObject) GetJsonObject(keys ...string) (JsonObject, error)
func (JsonObject) GetJsonObjectArray ¶
func (j JsonObject) GetJsonObjectArray(keys ...string) ([]JsonObject, error)
GetJsonObjectArray 获取JsonObject对象
Click to show internal directories.
Click to hide internal directories.