jsonutils

package
v1.0.202 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MulanPSL-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte2JsonPretty

func Byte2JsonPretty(b []byte) string

func FromJson

func FromJson(str string, anyout any) error

func FromJsonByte

func FromJsonByte(str []byte, anyout any) error

func FromJsonStr

func FromJsonStr(param []byte) any

func MapFromJson

func MapFromJson(param string) (m *map[string]any, err error)

func Str2JsonPretty

func Str2JsonPretty(txt string) string

func ToJson

func ToJson(v any) (string, error)

func ToJsonBytes added in v1.0.51

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

func ToJsonPretty

func ToJsonPretty(v any) string

func ToJsonStr

func ToJsonStr(v any) string

Types

type JsonUtils

type JsonUtils struct {
}

Jump to

Keyboard shortcuts

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