Documentation
¶
Index ¶
- func ToAny(v *JsonValue) any
- type JsonArray
- type JsonKey
- 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(keys []JsonKey, val *JsonValue) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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.