Documentation ¶
Index ¶
- func JSONDataValidate(data interface{}) interface{}
- func JSONTypeFromRawData(data interface{}) string
- type JSONArray
- func ArrayFactory() *JSONArray
- func ArrayFile(pathfile string) (*JSONArray, error)
- func ArrayNew() *JSONArray
- func ArrayParse(v interface{}) (*JSONArray, error)
- func ArrayString(buffer string) (*JSONArray, error)
- func JSONArrayFactory() *JSONArray
- func JSONArrayFile(pathfile string) (*JSONArray, error)
- func JSONArrayFromFile(pathfile string) (*JSONArray, error)
- func JSONArrayFromString(buffer string) (*JSONArray, error)
- func JSONArrayNew() *JSONArray
- func JSONArrayParse(v interface{}) (*JSONArray, error)
- func JSONArrayString(buffer string) (*JSONArray, error)
- func (me *JSONArray) Begin()
- func (me *JSONArray) Clean() *JSONArray
- func (me *JSONArray) Clear() *JSONArray
- func (me *JSONArray) Clone() (*JSONArray, error)
- func (me *JSONArray) Copy() (*JSONArray, error)
- func (me *JSONArray) Delete(index int) *JSONArray
- func (me *JSONArray) Equals(src *JSONArray) bool
- func (me *JSONArray) Factory() *JSONArray
- func (me *JSONArray) FetchArray() (int, *JSONArray)
- func (me *JSONArray) FetchBool() (int, bool)
- func (me *JSONArray) FetchFloat() (int, float64)
- func (me *JSONArray) FetchInt() (int, int)
- func (me *JSONArray) FetchNull() (int, interface{})
- func (me *JSONArray) FetchObject() (int, *JSONObject)
- func (me *JSONArray) FetchString() (int, string)
- func (me *JSONArray) FetchType() (int, string)
- func (me *JSONArray) Fill(src *JSONArray) *JSONArray
- func (me *JSONArray) FromFile(pathfile string) (*JSONArray, error)
- func (me *JSONArray) FromString(buffer string) (*JSONArray, error)
- func (me *JSONArray) GetArray(index int) *JSONArray
- func (me *JSONArray) GetBool(index int) bool
- func (me *JSONArray) GetFloat(index int) float64
- func (me *JSONArray) GetInt(index int) int
- func (me *JSONArray) GetNull(index int) interface{}
- func (me *JSONArray) GetObject(index int) *JSONObject
- func (me *JSONArray) GetObjectData() *collection.ArrayList
- func (me *JSONArray) GetString(index int) string
- func (me *JSONArray) GetType(index int) string
- func (me *JSONArray) Length() int
- func (me *JSONArray) Merge(src *JSONArray) *JSONArray
- func (me *JSONArray) New() *JSONArray
- func (me *JSONArray) Next() bool
- func (me *JSONArray) PutArray(value *JSONArray) *JSONArray
- func (me *JSONArray) PutBool(value bool) *JSONArray
- func (me *JSONArray) PutFloat(value float64) *JSONArray
- func (me *JSONArray) PutInt(value int) *JSONArray
- func (me *JSONArray) PutNull() *JSONArray
- func (me *JSONArray) PutObject(value *JSONObject) *JSONArray
- func (me *JSONArray) PutString(value string) *JSONArray
- func (me *JSONArray) ReadFile(pathfile string) (*JSONArray, error)
- func (me *JSONArray) ReadString(buffer string) (*JSONArray, error)
- func (me *JSONArray) Remove(index int) *JSONArray
- func (me *JSONArray) SetObjectData(list *collection.ArrayList) *JSONArray
- func (me *JSONArray) ToFile(pathfile string) (int, error)
- func (me *JSONArray) ToString() string
- type JSONObject
- func JSONObjectFactory() *JSONObject
- func JSONObjectFile(pathfile string) (*JSONObject, error)
- func JSONObjectFromFile(pathfile string) (*JSONObject, error)
- func JSONObjectFromString(buffer string) (*JSONObject, error)
- func JSONObjectNew() *JSONObject
- func JSONObjectParse(v interface{}) (*JSONObject, error)
- func JSONObjectString(buffer string) (*JSONObject, error)
- func ObjectFactory() *JSONObject
- func ObjectFile(pathfile string) (*JSONObject, error)
- func ObjectNew() *JSONObject
- func ObjectParse(v interface{}) (*JSONObject, error)
- func ObjectString(buffer string) (*JSONObject, error)
- func (me *JSONObject) CheckKey(key string) bool
- func (me *JSONObject) Clean() *JSONObject
- func (me *JSONObject) Clear() *JSONObject
- func (me *JSONObject) Clone() (*JSONObject, error)
- func (me *JSONObject) ContainsKey(key string) bool
- func (me *JSONObject) Copy() (*JSONObject, error)
- func (me *JSONObject) Delete(key string) *JSONObject
- func (me *JSONObject) Equals(src *JSONObject) bool
- func (me *JSONObject) Factory() *JSONObject
- func (me *JSONObject) Fill(src *JSONObject) *JSONObject
- func (me *JSONObject) FromFile(pathfile string) (*JSONObject, error)
- func (me *JSONObject) FromString(buffer string) (*JSONObject, error)
- func (me *JSONObject) GetArray(key string) *JSONArray
- func (me *JSONObject) GetBool(key string) bool
- func (me *JSONObject) GetFloat(key string) float64
- func (me *JSONObject) GetInt(key string) int
- func (me *JSONObject) GetKeys() []string
- func (me *JSONObject) GetNull(key string) interface{}
- func (me *JSONObject) GetObject(key string) *JSONObject
- func (me *JSONObject) GetObjectData() *collection.MapKey
- func (me *JSONObject) GetString(key string) string
- func (me *JSONObject) GetType(key string) string
- func (me *JSONObject) HasKey(key string) bool
- func (me *JSONObject) Length() int
- func (me *JSONObject) Merge(src *JSONObject) *JSONObject
- func (me *JSONObject) New() *JSONObject
- func (me *JSONObject) PutArray(key string, value *JSONArray) *JSONObject
- func (me *JSONObject) PutBool(key string, value bool) *JSONObject
- func (me *JSONObject) PutFloat(key string, value float64) *JSONObject
- func (me *JSONObject) PutInt(key string, value int) *JSONObject
- func (me *JSONObject) PutNull(key string) *JSONObject
- func (me *JSONObject) PutObject(key string, value *JSONObject) *JSONObject
- func (me *JSONObject) PutString(key string, value string) *JSONObject
- func (me *JSONObject) ReadFile(pathfile string) (*JSONObject, error)
- func (me *JSONObject) ReadString(buffer string) (*JSONObject, error)
- func (me *JSONObject) Remove(key string) *JSONObject
- func (me *JSONObject) SetObjectData(mapkey *collection.MapKey) *JSONObject
- func (me *JSONObject) ToFile(pathfile string) (int, error)
- func (me *JSONObject) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONDataValidate ¶
func JSONDataValidate(data interface{}) interface{}
JSONDataValidate is convert data interface validate
func JSONTypeFromRawData ¶ added in v0.0.4
func JSONTypeFromRawData(data interface{}) string
Types ¶
type JSONArray ¶
type JSONArray struct {
// contains filtered or unexported fields
}
JSONArray is data struct for JSONArray object
func ArrayParse ¶
ArrayParse is parse from slice array to json array object
func ArrayString ¶
ArrayString is convert json array string to JSONArray object
func JSONArrayFactory ¶
func JSONArrayFactory() *JSONArray
JSONArrayFactory is global create a new JSONArray
func JSONArrayFile ¶
JSONArrayFile is load JSONArray object from file
func JSONArrayFromFile ¶
JSONArrayFromFile is load JSONArray object from file
func JSONArrayFromString ¶
JSONArrayFromString is convert json array string to JSONArray object
func JSONArrayParse ¶
JSONArrayParse is parse from slice array to json array object
func JSONArrayString ¶
JSONArrayString is convert json array string to JSONArray object
func (*JSONArray) FetchArray ¶ added in v0.0.3
GetArray is get array item from index
func (*JSONArray) FetchFloat ¶ added in v0.0.3
GetFloat is get float item from index
func (*JSONArray) FetchObject ¶ added in v0.0.3
func (me *JSONArray) FetchObject() (int, *JSONObject)
GetObject is get object item from index
func (*JSONArray) FetchString ¶ added in v0.0.3
FetchString is get string item from index
func (*JSONArray) FromString ¶
FromString is load json array data from string buffer
func (*JSONArray) GetObject ¶
func (me *JSONArray) GetObject(index int) *JSONObject
GetObject is get object item from index
func (*JSONArray) GetObjectData ¶
func (me *JSONArray) GetObjectData() *collection.ArrayList
GetObjectData is get raw data
func (*JSONArray) Merge ¶
Merge is merge myseft and other JSONArray object to a new JSONArray object
func (*JSONArray) PutObject ¶
func (me *JSONArray) PutObject(value *JSONObject) *JSONArray
PutObject is put object data item
func (*JSONArray) ReadString ¶
ReadString is same FromString function
func (*JSONArray) SetObjectData ¶
func (me *JSONArray) SetObjectData(list *collection.ArrayList) *JSONArray
SetObjectData is set raw data
type JSONObject ¶
type JSONObject struct {
// contains filtered or unexported fields
}
JSONObject is data struct JSONObject object
func JSONObjectFactory ¶
func JSONObjectFactory() *JSONObject
JSONObjectFactory is global create a new JSONObject object
func JSONObjectFile ¶
func JSONObjectFile(pathfile string) (*JSONObject, error)
JSONObjectFile is load JSONObject object from file
func JSONObjectFromFile ¶
func JSONObjectFromFile(pathfile string) (*JSONObject, error)
JSONObjectFromFile is load JSONObject object from file
func JSONObjectFromString ¶
func JSONObjectFromString(buffer string) (*JSONObject, error)
JSONObjectFromString is convert json object string to JSONObject object
func JSONObjectNew ¶
func JSONObjectNew() *JSONObject
JSONObjectNew is global create a new JSONObject object
func JSONObjectParse ¶
func JSONObjectParse(v interface{}) (*JSONObject, error)
JSONObjectParse is parse from mapkey object to json object
func JSONObjectString ¶
func JSONObjectString(buffer string) (*JSONObject, error)
JSONObjectString is convert json object string to JSONObject object
func ObjectFactory ¶
func ObjectFactory() *JSONObject
ObjectFactory is global create a new JSONObject object
func ObjectFile ¶
func ObjectFile(pathfile string) (*JSONObject, error)
ObjectFile is load JSONObject object from file
func ObjectParse ¶
func ObjectParse(v interface{}) (*JSONObject, error)
ObjectParse is parse from mapkey object to json object
func ObjectString ¶
func ObjectString(buffer string) (*JSONObject, error)
ObjectString is convert json object string to JSONObject object
func (*JSONObject) CheckKey ¶
func (me *JSONObject) CheckKey(key string) bool
CheckKey is same ContainsKey
func (*JSONObject) Clone ¶
func (me *JSONObject) Clone() (*JSONObject, error)
Clone is same Copy function
func (*JSONObject) ContainsKey ¶
func (me *JSONObject) ContainsKey(key string) bool
ContainsKey is check has key
func (*JSONObject) Copy ¶
func (me *JSONObject) Copy() (*JSONObject, error)
Copy is clone data myseft to a new JSONObject object
func (*JSONObject) Delete ¶
func (me *JSONObject) Delete(key string) *JSONObject
Delete is same Remove function
func (*JSONObject) Equals ¶
func (me *JSONObject) Equals(src *JSONObject) bool
Equals is check JSONObject equal Other JSONObject
func (*JSONObject) Factory ¶
func (me *JSONObject) Factory() *JSONObject
Factory is create a new JSONObject object
func (*JSONObject) Fill ¶
func (me *JSONObject) Fill(src *JSONObject) *JSONObject
Fill is merge myseft with other JSONObject object
func (*JSONObject) FromFile ¶
func (me *JSONObject) FromFile(pathfile string) (*JSONObject, error)
FromFile is load json object data from file
func (*JSONObject) FromString ¶
func (me *JSONObject) FromString(buffer string) (*JSONObject, error)
FromString is load json object data from string
func (*JSONObject) GetArray ¶
func (me *JSONObject) GetArray(key string) *JSONArray
GetArray is get array data from key
func (*JSONObject) GetBool ¶
func (me *JSONObject) GetBool(key string) bool
GetBool is get boolean data from key
func (*JSONObject) GetFloat ¶
func (me *JSONObject) GetFloat(key string) float64
GetDouble is get float data from key
func (*JSONObject) GetInt ¶
func (me *JSONObject) GetInt(key string) int
GetInt is get int data from key
func (*JSONObject) GetKeys ¶
func (me *JSONObject) GetKeys() []string
GetKeys is get all keys in JSONObject object
func (*JSONObject) GetNull ¶
func (me *JSONObject) GetNull(key string) interface{}
GetNull is get null data from key
func (*JSONObject) GetObject ¶
func (me *JSONObject) GetObject(key string) *JSONObject
GetObject is get object data from key
func (*JSONObject) GetObjectData ¶
func (me *JSONObject) GetObjectData() *collection.MapKey
GetObjectData is get raw data
func (*JSONObject) GetString ¶
func (me *JSONObject) GetString(key string) string
GetString is get string data from key
func (*JSONObject) GetType ¶
func (me *JSONObject) GetType(key string) string
GetType is get data type of key
func (*JSONObject) HasKey ¶
func (me *JSONObject) HasKey(key string) bool
HasKey is same ContainsKey
func (*JSONObject) Length ¶
func (me *JSONObject) Length() int
Length is get size or count key of JSONObject object
func (*JSONObject) Merge ¶
func (me *JSONObject) Merge(src *JSONObject) *JSONObject
Merge is merge myseft and other JSONObject object to a new JSONObject object
func (*JSONObject) New ¶
func (me *JSONObject) New() *JSONObject
New is create a new JSONObject object
func (*JSONObject) PutArray ¶
func (me *JSONObject) PutArray(key string, value *JSONArray) *JSONObject
PutArray is put array data item
func (*JSONObject) PutBool ¶
func (me *JSONObject) PutBool(key string, value bool) *JSONObject
PutBool is put boolean data item
func (*JSONObject) PutFloat ¶
func (me *JSONObject) PutFloat(key string, value float64) *JSONObject
PutFloat is put float data item
func (*JSONObject) PutInt ¶
func (me *JSONObject) PutInt(key string, value int) *JSONObject
PutInt is put int data item
func (*JSONObject) PutNull ¶
func (me *JSONObject) PutNull(key string) *JSONObject
PutNull is put null data item
func (*JSONObject) PutObject ¶
func (me *JSONObject) PutObject(key string, value *JSONObject) *JSONObject
PutObject is put object data item
func (*JSONObject) PutString ¶
func (me *JSONObject) PutString(key string, value string) *JSONObject
PutString is put string data item
func (*JSONObject) ReadFile ¶
func (me *JSONObject) ReadFile(pathfile string) (*JSONObject, error)
ReadFile is same FromFile function
func (*JSONObject) ReadString ¶
func (me *JSONObject) ReadString(buffer string) (*JSONObject, error)
ReadString is same FromString function
func (*JSONObject) Remove ¶
func (me *JSONObject) Remove(key string) *JSONObject
Remove is delete data item from key
func (*JSONObject) SetObjectData ¶
func (me *JSONObject) SetObjectData(mapkey *collection.MapKey) *JSONObject
SetObjectData is set raw data
func (*JSONObject) ToFile ¶
func (me *JSONObject) ToFile(pathfile string) (int, error)
ToFile to write json object data to file
func (*JSONObject) ToString ¶
func (me *JSONObject) ToString() string
ToString is convert to json object string