gjson

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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对象

func (JsonObject) GetString

func (j JsonObject) GetString(keys ...string) (string, error)

GetString 获取字符串

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL