Documentation
¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func MarshalToString(v interface{}) (string, error)
- func RegisterFuzzyDecoders()
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromString(str string, v interface{}) error
- type JsonDocument
- func (jd *JsonDocument) GetJson() string
- func (jd *JsonDocument) GetPathBool(path string) bool
- func (jd *JsonDocument) GetPathInt(path string) int64
- func (jd *JsonDocument) GetPathString(path string) string
- func (jd *JsonDocument) SetJson(json string)
- func (jd *JsonDocument) SetPathValue(path string, value interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIndent ¶
func MarshalToString ¶
func UnmarshalFromString ¶
Types ¶
type JsonDocument ¶
type JsonDocument struct {
// contains filtered or unexported fields
}
func NewJsonDocument ¶
func NewJsonDocument(json string) *JsonDocument
func (*JsonDocument) GetJson ¶
func (jd *JsonDocument) GetJson() string
func (*JsonDocument) GetPathBool ¶
func (jd *JsonDocument) GetPathBool(path string) bool
func (*JsonDocument) GetPathInt ¶
func (jd *JsonDocument) GetPathInt(path string) int64
func (*JsonDocument) GetPathString ¶
func (jd *JsonDocument) GetPathString(path string) string
func (*JsonDocument) SetJson ¶
func (jd *JsonDocument) SetJson(json string)
func (*JsonDocument) SetPathValue ¶
func (jd *JsonDocument) SetPathValue(path string, value interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.