jsonhelper

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSONString

func GetJSONString(object interface{}) (string, error)

GetJSONString returns a JSON string of the specified object

func ParseJSONReader

func ParseJSONReader(json io.Reader, output interface{}) error

ParseJSONReader parses JSON string from the specified reader and fill the content into the output object

func ParseJSONString

func ParseJSONString(jsonString string, output interface{}) error

ParseJSONString parses JSON string from the specified reader and fill the content into the output object

func WriteToJSONFile

func WriteToJSONFile(path string, object interface{}, isOverwrite bool) error

WriteToJSONFile writes the specified object as a JSON file to the specified path

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL