Documentation ¶
Index ¶
- type JSONValue
- func (v *JSONValue) Array() []*JSONValue
- func (v *JSONValue) Boolean() bool
- func (v *JSONValue) IsArray() bool
- func (v *JSONValue) IsBoolean() bool
- func (v *JSONValue) IsNull() bool
- func (v *JSONValue) IsNumber() bool
- func (v *JSONValue) IsObject() bool
- func (v *JSONValue) IsString() bool
- func (v *JSONValue) Number() float64
- func (v *JSONValue) Object() map[string]*JSONValue
- func (v *JSONValue) Set()
- func (v *JSONValue) SetArray(val []*JSONValue)
- func (v *JSONValue) SetBoolean(val bool)
- func (v *JSONValue) SetNull()
- func (v *JSONValue) SetNumber(val float64)
- func (v *JSONValue) SetObject(val map[string]*JSONValue)
- func (v *JSONValue) SetString(val string)
- func (v *JSONValue) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONValue ¶
type JSONValue struct { json.RawMessage // contains filtered or unexported fields }
JSONValue represents a JSON value, independently of its data type.
func ParseString ¶
ParseString parses the value (as a string) into a new JSONValue.
func (*JSONValue) Set ¶
func (v *JSONValue) Set()
Set sets the value as the internal JSON value. Useful to update itself when any child's value changes.
func (*JSONValue) SetBoolean ¶
SetBoolean sets the value as a JSON boolean.
Click to show internal directories.
Click to hide internal directories.