Documentation ¶
Index ¶
- Constants
- type Json
- func (node *Json) ArrayAddBool(value bool)
- func (node *Json) ArrayAddItem(item *Json)
- func (node *Json) ArrayAddNumber(value int64)
- func (node *Json) ArrayAddString(value string)
- func (node *Json) ArrayGetItem(index int) *Json
- func (node *Json) Bytes() ([]byte, int)
- func (node *Json) GetSize() int
- func (node *Json) IsArray() bool
- func (node *Json) IsBool() bool
- func (node *Json) IsNumber() bool
- func (node *Json) IsObject() bool
- func (node *Json) IsString() bool
- func (node *Json) ItemNext(iter *Json) *Json
- func (node *Json) ObjectAddBool(key string, value bool)
- func (node *Json) ObjectAddItem(key string, item *Json)
- func (node *Json) ObjectAddNumber(key string, value int64)
- func (node *Json) ObjectAddString(key string, value string)
- func (node *Json) ObjectGetItem(key string) *Json
- func (node *Json) String() string
Constants ¶
View Source
const ( Json_Invalid = 0 Json_NIL = 1 << 0 Json_Bool = 1 << 1 Json_Number = 1 << 2 Json_String = 1 << 3 Json_Array = 1 << 4 Json_Object = 1 << 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Json ¶
type Json struct { Type int8 Valuebool bool Valuestring string Valuenumber int64 Valuefloat float64 Name string // contains filtered or unexported fields }
func CreateArray ¶
func CreateArray() *Json
func CreateBoolObject ¶
func CreateNumberObject ¶
func CreateObject ¶
func CreateObject() *Json
func CreateStringObject ¶
func ParseBytes ¶
func ParseString ¶
func (*Json) ArrayAddBool ¶
func (*Json) ArrayAddItem ¶
func (*Json) ArrayAddNumber ¶
func (*Json) ArrayAddString ¶
func (*Json) ArrayGetItem ¶
func (*Json) ObjectAddBool ¶
func (*Json) ObjectAddItem ¶
func (*Json) ObjectAddNumber ¶
func (*Json) ObjectAddString ¶
func (*Json) ObjectGetItem ¶
Click to show internal directories.
Click to hide internal directories.