Documentation
¶
Index ¶
- type JsonObject
- func (j *JsonObject) GetBoolean(path string) *bool
- func (j *JsonObject) GetBooleanD(path string, defValue bool) bool
- func (j *JsonObject) GetDataMap() map[string]interface{}
- func (j *JsonObject) GetFloat(path string) *float64
- func (j *JsonObject) GetFloatD(path string, defValue float64) float64
- func (j *JsonObject) GetInt(path string) *int
- func (j *JsonObject) GetIntD(path string, defValue int) int
- func (j *JsonObject) GetInterface(path string) interface{}
- func (j *JsonObject) GetJsonArray(path string) []JsonObject
- func (j *JsonObject) GetJsonObject(path string) *JsonObject
- func (j *JsonObject) GetString(path string) *string
- func (j *JsonObject) GetStringD(path string, defValue string) string
- func (j *JsonObject) Put(path string, value interface{}) *JsonObject
- func (j *JsonObject) ToBytes() []byte
- func (j *JsonObject) ToFormattedBytes() []byte
- func (j *JsonObject) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonObject ¶
type JsonObject struct {
// contains filtered or unexported fields
}
func Parse ¶
func Parse(data []byte) *JsonObject
func (*JsonObject) GetBoolean ¶
func (j *JsonObject) GetBoolean(path string) *bool
func (*JsonObject) GetBooleanD ¶
func (j *JsonObject) GetBooleanD(path string, defValue bool) bool
func (*JsonObject) GetDataMap ¶
func (j *JsonObject) GetDataMap() map[string]interface{}
func (*JsonObject) GetFloat ¶
func (j *JsonObject) GetFloat(path string) *float64
func (*JsonObject) GetFloatD ¶
func (j *JsonObject) GetFloatD(path string, defValue float64) float64
func (*JsonObject) GetInt ¶
func (j *JsonObject) GetInt(path string) *int
func (*JsonObject) GetInterface ¶
func (j *JsonObject) GetInterface(path string) interface{}
func (*JsonObject) GetJsonArray ¶
func (j *JsonObject) GetJsonArray(path string) []JsonObject
func (*JsonObject) GetJsonObject ¶
func (j *JsonObject) GetJsonObject(path string) *JsonObject
func (*JsonObject) GetString ¶
func (j *JsonObject) GetString(path string) *string
func (*JsonObject) GetStringD ¶
func (j *JsonObject) GetStringD(path string, defValue string) string
func (*JsonObject) Put ¶
func (j *JsonObject) Put(path string, value interface{}) *JsonObject
func (*JsonObject) ToBytes ¶
func (j *JsonObject) ToBytes() []byte
func (*JsonObject) ToFormattedBytes ¶
func (j *JsonObject) ToFormattedBytes() []byte
func (*JsonObject) ToString ¶
func (j *JsonObject) ToString() string
Click to show internal directories.
Click to hide internal directories.