Help us shape the future of Go! Take the 2026 Go Developer Survey

json

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(container, containee map[string]interface{}) bool

Contains checks if the containee map is contained within the container map, including nested JSON structures.

func ConvertJSONStringsToMaps

func ConvertJSONStringsToMaps(merged *map[string]interface{})

ConvertJSONStringsToMaps converts JSON strings within a map to maps for JSON data processing.

func ConvertMapToJson added in v1.0.0

func ConvertMapToJson(m map[string]interface{}) (string, error)

ConvertMapToJson converts a map to a JSON string.

func IsJSONString

func IsJSONString(jsonStr string) bool

IsJSONString checks if a given string is a valid JSON.

func JsonStringToMap

func JsonStringToMap(jsonStr string) map[string]interface{}

JsonStringToMap converts a JSON string to a map.

func StructToMap

func StructToMap(obj interface{}) (newMap map[string]interface{}, err error)

StructToMap converts a struct to a map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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