Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONParse ¶
JSONParse parses a JSON string into a map[string]interface{}.
It takes a JSON string as input and returns a map[string]interface{} and an error, if any. The map represents the parsed JSON object. If the JSON string cannot be parsed, the error is returned.
func JSONStringify ¶
JSONStringify converts a map[string]interface{} object into a JSON string.
It takes a map[string]interface{} object as input and returns a JSON string. If there is an error during the JSON marshaling process, an empty string is returned.
func PrettyString ¶
PrettyString formats a JSON string into a more human-readable format.
It takes a JSON string as input and returns a formatted JSON string and an error, if any. The formatted JSON string is indented with two spaces.
Types ¶
This section is empty.