Documentation ¶
Index ¶
- func ToAny(v *JsonValue) any
- type JsonArray
- type JsonKey
- type JsonKeyElm
- type JsonObject
- type JsonType
- type JsonValue
- func (v *JsonValue) Float64() (float64, bool)
- func (v *JsonValue) Int64() (int64, bool)
- func (v *JsonValue) MarshalJSON() ([]byte, error)
- func (v *JsonValue) MustArray() JsonArray
- func (v *JsonValue) MustBool() bool
- func (v *JsonValue) MustNumber() json.Number
- func (v *JsonValue) MustObject() JsonObject
- func (v *JsonValue) MustString() string
- func (v *JsonValue) UnmarshalJSON(b []byte) error
- func (v *JsonValue) Walk(visitor func(key JsonKey, val *JsonValue) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonKey ¶
type JsonKey []JsonKeyElm
func (JsonKey) Append ¶ added in v0.0.6
func (k JsonKey) Append(key JsonKeyElm) JsonKey
type JsonKeyElm ¶ added in v0.0.6
type JsonKeyElm string
func (JsonKeyElm) Integer ¶ added in v0.0.6
func (e JsonKeyElm) Integer() (int, bool)
func (JsonKeyElm) String ¶ added in v0.0.6
func (e JsonKeyElm) String() string
type JsonObject ¶
func (JsonObject) Del ¶
func (o JsonObject) Del(k string)
func (JsonObject) Empty ¶
func (o JsonObject) Empty() bool
func (JsonObject) Get ¶
func (o JsonObject) Get(k string) *JsonValue
func (JsonObject) Has ¶
func (o JsonObject) Has(k string) bool
func (JsonObject) Keys ¶
func (o JsonObject) Keys() []string
func (JsonObject) Len ¶
func (o JsonObject) Len() int
func (JsonObject) Set ¶
func (o JsonObject) Set(k string, v *JsonValue)
type JsonValue ¶
type JsonValue struct { Type JsonType StringValue string NumberValue json.Number BooleanValue bool ArrayValue JsonArray ObjectValue JsonObject }
func (*JsonValue) MarshalJSON ¶
func (*JsonValue) MustNumber ¶
func (*JsonValue) MustObject ¶
func (v *JsonValue) MustObject() JsonObject
func (*JsonValue) MustString ¶
func (*JsonValue) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.