Documentation ¶
Index ¶
- func GetJSONString(object interface{}) (string, error)
- func GetJSONStringBuffer(object interface{}) (*bytes.Buffer, error)
- func ParseJSONReader(json io.Reader, output interface{}) error
- func ParseJSONString(jsonString string, output interface{}) error
- func WriteToJSONFile(path string, object interface{}, isOverwrite bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJSONString ¶
GetJSONString returns a JSON string of the specified object
func GetJSONStringBuffer ¶ added in v0.0.20
GetJSONStringBuffer returns a buffer of JSON string of the specified object
func ParseJSONReader ¶
ParseJSONReader parses JSON string from the specified reader and fill the content into the output object
func ParseJSONString ¶
ParseJSONString parses JSON string from the specified reader and fill the content into the output object
func WriteToJSONFile ¶
WriteToJSONFile writes the specified object as a JSON file to the specified path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.