Documentation
¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- type Beautifier
- type Object
- func (j Object) Array(path string) []interface{}
- func (j Object) Beautify() Beautifier
- func (j Object) Bytes() []byte
- func (j Object) Clone() Object
- func (j Object) CopyTo(js *Object)
- func (j Object) Get(path string) interface{}
- func (j Object) GetArray(path string) []Object
- func (j Object) GetBoolean(path string) bool
- func (j Object) GetBooleanNull(path string) *bool
- func (j Object) GetBooleanOr(path string, defValue bool) bool
- func (j Object) GetFloat(path string) float64
- func (j Object) GetFloatNull(path string) *float64
- func (j Object) GetFloatOr(path string, defValue float64) float64
- func (j Object) GetInt(path string) int
- func (j Object) GetIntArray(path string) []int
- func (j Object) GetIntNull(path string) *int
- func (j Object) GetIntOr(path string, defValue int) int
- func (j Object) GetJSONObject(path string) Object
- func (j Object) GetString(path string) string
- func (j Object) GetStringArray(path string) []string
- func (j Object) GetStringNull(path string) *string
- func (j Object) GetStringOr(path string, defValue string) string
- func (j Object) Has(key string) bool
- func (j Object) Put(path string, value interface{}) Object
- func (j Object) Remove(path string)
- func (j Object) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Beautifier ¶ added in v0.5.0
type Object ¶
type Object map[string]interface{}
func ParseArray ¶
func ParseObject ¶
func ParseString ¶
func (Object) Beautify ¶ added in v0.5.0
func (j Object) Beautify() Beautifier
func (Object) GetBoolean ¶
func (Object) GetBooleanNull ¶
func (Object) GetFloatNull ¶
func (Object) GetIntArray ¶
func (Object) GetIntNull ¶
func (Object) GetJSONObject ¶
func (Object) GetStringArray ¶
func (Object) GetStringNull ¶
Click to show internal directories.
Click to hide internal directories.