gojson

package
v1.0.216 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 2 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(v interface{}) (string, error)

func IsValidJSON added in v1.0.216

func IsValidJSON(s string) bool

func JsonDecode

func JsonDecode(data string) (map[string]interface{}, error)

func JsonDecodeNoError

func JsonDecodeNoError(data string) map[string]interface{}

func JsonDecodesNoError

func JsonDecodesNoError(data string) []string

func JsonEncode

func JsonEncode(data interface{}) (string, error)

func JsonEncodeNoError

func JsonEncodeNoError(data interface{}) string

func Marshal added in v1.0.216

func Marshal(v any) ([]byte, error)

func MarshalToString

func MarshalToString(msg interface{}) (string, error)

func ParseQueryString added in v1.0.216

func ParseQueryString(input string) map[string]interface{}

func Unmarshal added in v1.0.216

func Unmarshal(data []byte, v any) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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