Documentation ¶
Overview ¶
Package json is a custom json parser with an aim to provide more descriptive errors when reading malformed json
Index ¶
Constants ¶
const NoData = "no data returned"
NoData is a custom default error message when JSON marshaller returns nil
Variables ¶
This section is empty.
Functions ¶
func LazyLogging ¶
func LazyLogging(v interface{}) string
func LazyLoggingPretty ¶
func LazyLoggingPretty(v interface{}) string
func Marshal ¶
Marshal is a wrapper around Go's JSON marshaller to prettify output depending on whether the target is a terminal or not. This is so that the output is human readable when output for a human but a single line machine readable formatting for better support with iteration / concatenation when output to system functions.
func Unmarshal ¶
Unmarshal is a wrapper around the standard json.Unmarshal function. This is done this way so that murex can swap out the JSON unmarshaller from the standard libraries with a 3rd party decoder that might run more efficiently.
func UnmarshalMurex ¶
UnmarshalMurex is a wrapper around Go's JSON unmarshaller to support nested brace quotes (which allows for a cleaner syntax when embedding Murex code as JSON strings) and line comments via the hash, `#`, prefix.
Types ¶
This section is empty.