json

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package json provides JSON encoding and decoding utility functions.

Index

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.

Jump to

Keyboard shortcuts

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