Documentation ¶ Overview ¶ Package json provides JSON encoding and decoding utility functions. Index ¶ func Decode(jsonStr string) (any, error) func Encode(v any) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(jsonStr string) (any, error) Decode converts a JSON string to a Go value. Returns the decoded value which will be one of: - nil for JSON null - bool for JSON boolean - float64 for JSON numbers - string for JSON strings - []any for JSON arrays - map[string]any for JSON objects func Encode ¶ func Encode(v any) (string, error) Encode converts a Go value to a JSON string. Types ¶ This section is empty. Source Files ¶ View all Source files doc.gojson.go Click to show internal directories. Click to hide internal directories.