Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrJSONDecode = errors.New("failed to decode JSON")
View Source
var ErrOpenFile = errors.New("failed to open file")
View Source
var ErrReadFile = errors.New("failed to read file")
Functions ¶
func DecodeJSONFile ¶
DecodeJSONFile returns the contents of a json file as a map
func IsJSONArray ¶
IsJSONArray returns true if the byte array represents a JSON array
func IsJSONObject ¶
IsJSONObject returns true if the byte array represents a JSON object
func IsValidJSON ¶
IsValidJSON returns true if the given byte array is a JSON array of JSON object
func UnescapeJSON ¶
UnescapeJSON replaces unicode escape characters with the actual character
Types ¶
type JsonDecodeError ¶
type JsonDecodeError struct {
Err error
}
Click to show internal directories.
Click to hide internal directories.