jsonutils

package
v1.0.1-rel-01 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 5 Imported by: 0

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, obj interface{}) error

str 2 stru srary

func FromJsonByte

func FromJsonByte(inbyte []byte, obj interface{}) error

func FromJsonStr

func FromJsonStr(param []byte) any

func JsonFromStr

func JsonFromStr(v string) string

func MapFromJson

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

func Parse2Map

func Parse2Map(src string) (map[string]any, error)

func ParseArray2Map

func ParseArray2Map(stru []any) (any, error)

func Str2JsonPretty

func Str2JsonPretty(txt string) string

func Stru2JsonStr

func Stru2JsonStr(value any) string

func Stru2Map

func Stru2Map(stru any) map[string]any

func ToJson

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

func ToJsonBytes

func ToJsonBytes(v interface{}) ([]byte, error)

func ToJsonPretty

func ToJsonPretty(v interface{}) string

func ToJsonStr

func ToJsonStr(v interface{}) 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