Versions in this module Expand all Collapse all v1 v1.0.2 Nov 28, 2021 v1.0.1 Nov 28, 2021 Changes in this version + func Decode(data interface{}) (interface{}, error) + func DecodeTo(data interface{}, v interface{}) error + func Encode(value interface{}) ([]byte, error) + func IsValidDataType(dataType string) bool + func Valid(data interface{}) bool + type Json struct + func DecodeToJson(data interface{}, safe ...bool) (*Json, error) + func Load(path string, safe ...bool) (*Json, error) + func LoadContent(data interface{}, safe ...bool) (*Json, error) + func LoadContentType(dataType string, data interface{}, safe ...bool) (*Json, error) + func LoadIni(data interface{}, safe ...bool) (*Json, error) + func LoadJson(data interface{}, safe ...bool) (*Json, error) + func LoadToml(data interface{}, safe ...bool) (*Json, error) + func LoadXml(data interface{}, safe ...bool) (*Json, error) + func LoadYaml(data interface{}, safe ...bool) (*Json, error) + func New(data interface{}, safe ...bool) *Json + func NewWithOptions(data interface{}, options Options) *Json + func NewWithTag(data interface{}, tags string, safe ...bool) *Json + func (j *Json) Append(pattern string, value interface{}) error + func (j *Json) Array() []interface{} + func (j *Json) Contains(pattern string) bool + func (j *Json) Dump() + func (j *Json) Get(pattern string, def ...interface{}) *gvar.Var + func (j *Json) GetJson(pattern string, def ...interface{}) *Json + func (j *Json) GetJsonMap(pattern string, def ...interface{}) map[string]*Json + func (j *Json) GetJsons(pattern string, def ...interface{}) []*Json + func (j *Json) Interface() interface{} + func (j *Json) IsNil() bool + func (j *Json) Len(pattern string) int + func (j *Json) Map() map[string]interface{} + func (j *Json) MarshalJSON() ([]byte, error) + func (j *Json) MustToIni() []byte + func (j *Json) MustToIniString() string + func (j *Json) MustToJson() []byte + func (j *Json) MustToJsonIndent() []byte + func (j *Json) MustToJsonIndentString() string + func (j *Json) MustToJsonString() string + func (j *Json) MustToToml() []byte + func (j *Json) MustToTomlString() string + func (j *Json) MustToXml(rootTag ...string) []byte + func (j *Json) MustToXmlIndent(rootTag ...string) []byte + func (j *Json) MustToXmlIndentString(rootTag ...string) string + func (j *Json) MustToXmlString(rootTag ...string) string + func (j *Json) MustToYaml() []byte + func (j *Json) MustToYamlString() string + func (j *Json) Remove(pattern string) error + func (j *Json) Scan(pointer interface{}, mapping ...map[string]string) error + func (j *Json) Set(pattern string, value interface{}) error + func (j *Json) SetSplitChar(char byte) + func (j *Json) SetViolenceCheck(enabled bool) + func (j *Json) ToIni() ([]byte, error) + func (j *Json) ToIniString() (string, error) + func (j *Json) ToJson() ([]byte, error) + func (j *Json) ToJsonIndent() ([]byte, error) + func (j *Json) ToJsonIndentString() (string, error) + func (j *Json) ToJsonString() (string, error) + func (j *Json) ToToml() ([]byte, error) + func (j *Json) ToTomlString() (string, error) + func (j *Json) ToXml(rootTag ...string) ([]byte, error) + func (j *Json) ToXmlIndent(rootTag ...string) ([]byte, error) + func (j *Json) ToXmlIndentString(rootTag ...string) (string, error) + func (j *Json) ToXmlString(rootTag ...string) (string, error) + func (j *Json) ToYaml() ([]byte, error) + func (j *Json) ToYamlString() (string, error) + func (j *Json) UnmarshalJSON(b []byte) error + func (j *Json) UnmarshalValue(value interface{}) error + func (j *Json) Var() *gvar.Var + type Options struct + Safe bool + StrNumber bool + Tags string